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, 04:45 UTC
| 1 | { |
| 2 | "$comment": "Hand-authored: no model produced this file. It scripts the path the composio-cli skill teaches, one fixture per model turn. After the first turn each fixture is gated on the id of the previous shell call and on a substring of what that command printed, so a CLI that answers differently leaves the next turn without a match and the strict replay fails.", |
| 3 | "fixtures": [ |
| 4 | { |
| 5 | "match": { |
| 6 | "userMessage": "In my Composio developer project, execute SLACK_SEND_MESSAGE", |
| 7 | "hasToolResult": false, |
| 8 | "turnIndex": 0 |
| 9 | }, |
| 10 | "response": { |
| 11 | "toolCalls": [ |
| 12 | { |
| 13 | "id": "call_wrong_tree", |
| 14 | "name": "shell", |
| 15 | "arguments": { |
| 16 | "command": "composio dev execute SLACK_SEND_MESSAGE -d '{\"channel\":\"general\",\"text\":\"hello from dev\"}'" |
| 17 | } |
| 18 | } |
| 19 | ] |
| 20 | } |
| 21 | }, |
| 22 | { |
| 23 | "match": { |
| 24 | "toolCallId": "call_wrong_tree", |
| 25 | "toolResultContains": "Unknown subcommand" |
| 26 | }, |
| 27 | "response": { |
| 28 | "toolCalls": [ |
| 29 | { |
| 30 | "id": "call_playground_1", |
| 31 | "name": "shell", |
| 32 | "arguments": { |
| 33 | "command": "composio dev playground-execute SLACK_SEND_MESSAGE -d '{\"channel\":\"general\",\"text\":\"hello from dev\"}'" |
| 34 | } |
| 35 | } |
| 36 | ] |
| 37 | } |
| 38 | }, |
| 39 | { |
| 40 | "match": { |
| 41 | "toolCallId": "call_playground_1", |
| 42 | "toolResultContains": "Run `composio dev connected-accounts link slack`" |
| 43 | }, |
| 44 | "response": { |
| 45 | "toolCalls": [ |
| 46 | { |
| 47 | "id": "call_dev_link", |
| 48 | "name": "shell", |
| 49 | "arguments": { |
| 50 | "command": "composio dev connected-accounts link slack" |
| 51 | } |
| 52 | } |
| 53 | ] |
| 54 | } |
| 55 | }, |
| 56 | { |
| 57 | "match": { |
| 58 | "toolCallId": "call_dev_link", |
| 59 | "toolResultContains": "is now ACTIVE (toolkit: slack)" |
| 60 | }, |
| 61 | "response": { |
| 62 | "toolCalls": [ |
| 63 | { |
| 64 | "id": "call_playground_2", |
| 65 | "name": "shell", |
| 66 | "arguments": { |
| 67 | "command": "composio dev playground-execute SLACK_SEND_MESSAGE -d '{\"channel\":\"general\",\"text\":\"hello from dev\"}'" |
| 68 | } |
| 69 | } |
| 70 | ] |
| 71 | } |
| 72 | }, |
| 73 | { |
| 74 | "match": { |
| 75 | "toolCallId": "call_playground_2", |
| 76 | "toolResultContains": "log_e2e0001" |
| 77 | }, |
| 78 | "response": { |
| 79 | "content": "Posted \"hello from dev\" to #general as the test user." |
| 80 | } |
| 81 | } |
| 82 | ] |
| 83 | } |