Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 06:00 UTC
| 1 | { |
| 2 | "$comment": "Recorded from anthropic claude-haiku-5-5 by record.ts. Do not edit by hand; record again.", |
| 3 | "fixtures": [ |
| 4 | { |
| 5 | "match": { |
| 6 | "turnIndex": 0, |
| 7 | "userMessage": "Use a single `composio run` inline script to send \"build passed\" to #general on Slack and print the timestamp of the sent message.", |
| 8 | "model": "claude-haiku-5-5", |
| 9 | "hasToolResult": false |
| 10 | }, |
| 11 | "response": { |
| 12 | "toolCalls": [ |
| 13 | { |
| 14 | "id": "toolu_01G92FrEpnpkB12CqnnRdTo3", |
| 15 | "name": "shell", |
| 16 | "arguments": "{\"command\":\"composio search \\\"send a message to a slack channel\\\" --toolkits slack\"}" |
| 17 | }, |
| 18 | { |
| 19 | "id": "toolu_01KewDTHMcgWnSXxMeXeZSeH", |
| 20 | "name": "shell", |
| 21 | "arguments": "{\"command\":\"composio whoami\"}" |
| 22 | } |
| 23 | ], |
| 24 | "usage": { |
| 25 | "input_tokens": 2670, |
| 26 | "cache_creation_input_tokens": 0, |
| 27 | "cache_read_input_tokens": 0, |
| 28 | "cache_creation": { |
| 29 | "ephemeral_5m_input_tokens": 0, |
| 30 | "ephemeral_1h_input_tokens": 0 |
| 31 | }, |
| 32 | "output_tokens": 315 |
| 33 | }, |
| 34 | "content": "I'll confirm the Slack slug and its input schema before writing the script." |
| 35 | }, |
| 36 | "metadata": { |
| 37 | "systemHash": "6ee9d189", |
| 38 | "toolsHash": "95a7fdfe" |
| 39 | } |
| 40 | }, |
| 41 | { |
| 42 | "match": { |
| 43 | "turnIndex": 1, |
| 44 | "userMessage": "Use a single `composio run` inline script to send \"build passed\" to #general on Slack and print the timestamp of the sent message.", |
| 45 | "model": "claude-haiku-5-5", |
| 46 | "hasToolResult": true, |
| 47 | "toolCallId": "toolu_01KewDTHMcgWnSXxMeXeZSeH", |
| 48 | "toolResultContains": "\"exit_code\":0," |
| 49 | }, |
| 50 | "response": { |
| 51 | "toolCalls": [ |
| 52 | { |
| 53 | "id": "toolu_01LL5tsDxfRkRMG1KpzG2zUx", |
| 54 | "name": "shell", |
| 55 | "arguments": "{\"command\":\"composio execute SLACK_SEND_MESSAGE --get-schema\"}" |
| 56 | } |
| 57 | ], |
| 58 | "usage": { |
| 59 | "input_tokens": 3729, |
| 60 | "cache_creation_input_tokens": 0, |
| 61 | "cache_read_input_tokens": 0, |
| 62 | "cache_creation": { |
| 63 | "ephemeral_5m_input_tokens": 0, |
| 64 | "ephemeral_1h_input_tokens": 0 |
| 65 | }, |
| 66 | "output_tokens": 69 |
| 67 | } |
| 68 | }, |
| 69 | "metadata": { |
| 70 | "systemHash": "6ee9d189", |
| 71 | "toolsHash": "95a7fdfe" |
| 72 | } |
| 73 | }, |
| 74 | { |
| 75 | "match": { |
| 76 | "turnIndex": 2, |
| 77 | "userMessage": "Use a single `composio run` inline script to send \"build passed\" to #general on Slack and print the timestamp of the sent message.", |
| 78 | "model": "claude-haiku-5-5", |
| 79 | "hasToolResult": true, |
| 80 | "toolCallId": "toolu_01LL5tsDxfRkRMG1KpzG2zUx", |
| 81 | "toolResultContains": "\"exit_code\":0," |
| 82 | }, |
| 83 | "response": { |
| 84 | "toolCalls": [ |
| 85 | { |
| 86 | "id": "toolu_01Hfd7ZbcJRqiRfRHwnTVct1", |
| 87 | "name": "shell", |
| 88 | "arguments": "{\"command\":\"composio run '\\n const res = await execute(\\\"SLACK_SEND_MESSAGE\\\", { channel: \\\"#general\\\", text: \\\"build passed\\\" });\\n const ts = res.data?.ts ?? res.data?.message?.ts ?? res.data?.data?.ts;\\n console.log(ts ? `Sent at ts=${ts}` : JSON.stringify(res.data, null, 2));\\n'\"}" |
| 89 | } |
| 90 | ], |
| 91 | "usage": { |
| 92 | "input_tokens": 4092, |
| 93 | "cache_creation_input_tokens": 0, |
| 94 | "cache_read_input_tokens": 0, |
| 95 | "cache_creation": { |
| 96 | "ephemeral_5m_input_tokens": 0, |
| 97 | "ephemeral_1h_input_tokens": 0 |
| 98 | }, |
| 99 | "output_tokens": 295 |
| 100 | }, |
| 101 | "content": "The schema takes `channel` and `text`. Now I'll send the message with a single `composio run` script." |
| 102 | }, |
| 103 | "metadata": { |
| 104 | "systemHash": "6ee9d189", |
| 105 | "toolsHash": "95a7fdfe" |
| 106 | } |
| 107 | }, |
| 108 | { |
| 109 | "match": { |
| 110 | "turnIndex": 3, |
| 111 | "userMessage": "Use a single `composio run` inline script to send \"build passed\" to #general on Slack and print the timestamp of the sent message.", |
| 112 | "model": "claude-haiku-5-5", |
| 113 | "hasToolResult": true, |
| 114 | "toolCallId": "toolu_01Hfd7ZbcJRqiRfRHwnTVct1", |
| 115 | "toolResultContains": "\"exit_code\":0," |
| 116 | }, |
| 117 | "response": { |
| 118 | "usage": { |
| 119 | "input_tokens": 4471, |
| 120 | "cache_creation_input_tokens": 0, |
| 121 | "cache_read_input_tokens": 0, |
| 122 | "cache_creation": { |
| 123 | "ephemeral_5m_input_tokens": 0, |
| 124 | "ephemeral_1h_input_tokens": 0 |
| 125 | }, |
| 126 | "output_tokens": 144 |
| 127 | }, |
| 128 | "content": "I sent \"build passed\" to #general with one `composio run` script, and the message timestamp came back as `1767225600.000100`.\n\nThe script called `SLACK_SEND_MESSAGE` with `channel: \"#general\"` and `text: \"build passed\"`, then printed the `ts` field from the response. I checked the tool's input schema first, and the `whoami` check showed I'm logged in as dev@acme-e2e.test with Slack connected." |
| 129 | }, |
| 130 | "metadata": { |
| 131 | "systemHash": "6ee9d189", |
| 132 | "toolsHash": "95a7fdfe" |
| 133 | } |
| 134 | } |
| 135 | ] |
| 136 | } |