Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
json 164 lines 5.24 KB
Raw
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": "Check whether the Composio CLI on this machine is logged in. If it is not, log in.",
8 "model": "claude-haiku-5-5",
9 "hasToolResult": false
10 },
11 "response": {
12 "toolCalls": [
13 {
14 "id": "toolu_014y1sFUoRBc1ebfonU8EqGS",
15 "name": "shell",
16 "arguments": "{\"command\":\"composio whoami\"}"
17 }
18 ],
19 "usage": {
20 "input_tokens": 2659,
21 "cache_creation_input_tokens": 0,
22 "cache_read_input_tokens": 0,
23 "cache_creation": {
24 "ephemeral_5m_input_tokens": 0,
25 "ephemeral_1h_input_tokens": 0
26 },
27 "output_tokens": 50
28 }
29 },
30 "metadata": {
31 "systemHash": "6ee9d189",
32 "toolsHash": "95a7fdfe"
33 }
34 },
35 {
36 "match": {
37 "turnIndex": 1,
38 "userMessage": "Check whether the Composio CLI on this machine is logged in. If it is not, log in.",
39 "model": "claude-haiku-5-5",
40 "hasToolResult": true,
41 "toolCallId": "toolu_014y1sFUoRBc1ebfonU8EqGS",
42 "toolResultContains": "\"exit_code\":1,"
43 },
44 "response": {
45 "toolCalls": [
46 {
47 "id": "toolu_01FyBnAtspFmeLAURYkLwXiu",
48 "name": "shell",
49 "arguments": "{\"command\":\"composio login\"}"
50 }
51 ],
52 "usage": {
53 "input_tokens": 2757,
54 "cache_creation_input_tokens": 0,
55 "cache_read_input_tokens": 0,
56 "cache_creation": {
57 "ephemeral_5m_input_tokens": 0,
58 "ephemeral_1h_input_tokens": 0
59 },
60 "output_tokens": 60
61 },
62 "content": "Not logged in. Running login now."
63 },
64 "metadata": {
65 "systemHash": "6ee9d189",
66 "toolsHash": "95a7fdfe"
67 }
68 },
69 {
70 "match": {
71 "turnIndex": 2,
72 "userMessage": "Check whether the Composio CLI on this machine is logged in. If it is not, log in.",
73 "model": "claude-haiku-5-5",
74 "hasToolResult": true,
75 "toolCallId": "toolu_01FyBnAtspFmeLAURYkLwXiu",
76 "toolResultContains": "\"exit_code\":0,"
77 },
78 "response": {
79 "toolCalls": [
80 {
81 "id": "toolu_01MkR6XPCsvsEHA24TwcwCgv",
82 "name": "shell",
83 "arguments": "{\"command\":\"composio login --poll\"}"
84 }
85 ],
86 "usage": {
87 "input_tokens": 3087,
88 "cache_creation_input_tokens": 0,
89 "cache_read_input_tokens": 0,
90 "cache_creation": {
91 "ephemeral_5m_input_tokens": 0,
92 "ephemeral_1h_input_tokens": 0
93 },
94 "output_tokens": 230
95 },
96 "content": "The login needs a browser step. Please open this URL and finish signing in: https://dashboard.composio.test?cliKey=00000000-0000-4000-8000-000000050001\n\nI'll wait for the login to complete."
97 },
98 "metadata": {
99 "systemHash": "6ee9d189",
100 "toolsHash": "95a7fdfe"
101 }
102 },
103 {
104 "match": {
105 "turnIndex": 3,
106 "userMessage": "Check whether the Composio CLI on this machine is logged in. If it is not, log in.",
107 "model": "claude-haiku-5-5",
108 "hasToolResult": true,
109 "toolCallId": "toolu_01MkR6XPCsvsEHA24TwcwCgv",
110 "toolResultContains": "\"exit_code\":0,"
111 },
112 "response": {
113 "toolCalls": [
114 {
115 "id": "toolu_01W7hx1TNLtdZhg9hVb5JSWt",
116 "name": "shell",
117 "arguments": "{\"command\":\"composio whoami\"}"
118 }
119 ],
120 "usage": {
121 "input_tokens": 3591,
122 "cache_creation_input_tokens": 0,
123 "cache_read_input_tokens": 0,
124 "cache_creation": {
125 "ephemeral_5m_input_tokens": 0,
126 "ephemeral_1h_input_tokens": 0
127 },
128 "output_tokens": 50
129 }
130 },
131 "metadata": {
132 "systemHash": "6ee9d189",
133 "toolsHash": "95a7fdfe"
134 }
135 },
136 {
137 "match": {
138 "turnIndex": 4,
139 "userMessage": "Check whether the Composio CLI on this machine is logged in. If it is not, log in.",
140 "model": "claude-haiku-5-5",
141 "hasToolResult": true,
142 "toolCallId": "toolu_01W7hx1TNLtdZhg9hVb5JSWt",
143 "toolResultContains": "\"exit_code\":0,"
144 },
145 "response": {
146 "usage": {
147 "input_tokens": 3739,
148 "cache_creation_input_tokens": 0,
149 "cache_read_input_tokens": 0,
150 "cache_creation": {
151 "ephemeral_5m_input_tokens": 0,
152 "ephemeral_1h_input_tokens": 0
153 },
154 "output_tokens": 144
155 },
156 "content": "The Composio CLI was not logged in. I ran `composio login`, you completed the browser step, and `composio login --poll` saved the credentials. `composio whoami` now confirms the session:\n\n- **Account:** dev@acme-e2e.test (human)\n- **Current org:** Acme E2E\n\nAnother org, Globex E2E, is also available. To switch to it, run `composio orgs switch --org-id ok_e2eglobex001`."
157 },
158 "metadata": {
159 "systemHash": "6ee9d189",
160 "toolsHash": "95a7fdfe"
161 }
162 }
163 ]
164 }