@devries-cameron20 / composio Mirror · read-only
Fork 0

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

next
json 84 lines 2.27 KB
Raw
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": "Check whether the Composio CLI on this machine is logged in",
7 "hasToolResult": false,
8 "turnIndex": 0
9 },
10 "response": {
11 "toolCalls": [
12 {
13 "id": "call_whoami_1",
14 "name": "shell",
15 "arguments": {
16 "command": "composio whoami"
17 }
18 }
19 ]
20 }
21 },
22 {
23 "match": {
24 "toolCallId": "call_whoami_1",
25 "toolResultContains": "You are not logged in yet. Please run `composio login`."
26 },
27 "response": {
28 "toolCalls": [
29 {
30 "id": "call_login",
31 "name": "shell",
32 "arguments": {
33 "command": "composio login"
34 }
35 }
36 ]
37 }
38 },
39 {
40 "match": {
41 "toolCallId": "call_login",
42 "toolResultContains": "cliKey=00000000-0000-4000-8000-000000050001"
43 },
44 "response": {
45 "content": "Open this URL in your browser to log in, and I will wait for it: https://dashboard.composio.test?cliKey=00000000-0000-4000-8000-000000050001",
46 "toolCalls": [
47 {
48 "id": "call_poll",
49 "name": "shell",
50 "arguments": {
51 "command": "composio login --poll"
52 }
53 }
54 ]
55 }
56 },
57 {
58 "match": {
59 "toolCallId": "call_poll",
60 "toolResultContains": "current_org"
61 },
62 "response": {
63 "toolCalls": [
64 {
65 "id": "call_whoami_2",
66 "name": "shell",
67 "arguments": {
68 "command": "composio whoami"
69 }
70 }
71 ]
72 }
73 },
74 {
75 "match": {
76 "toolCallId": "call_whoami_2",
77 "toolResultContains": "dev@acme-e2e.test"
78 },
79 "response": {
80 "content": "The CLI is now logged in as dev@acme-e2e.test."
81 }
82 }
83 ]
84 }