tool.yaml

  1---
  2version: 2
  3interactions:
  4- id: 0
  5  request:
  6    proto: HTTP/1.1
  7    proto_major: 1
  8    proto_minor: 1
  9    content_length: 488
 10    host: ""
 11    body: '{"max_output_tokens":4000,"store":false,"input":[{"content":"You are a helpful assistant","role":"developer"},{"content":[{"text":"What''s the weather in Florence,Italy?","type":"input_text"}],"role":"user"}],"model":"o4-mini","tool_choice":"auto","tools":[{"strict":false,"parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"},"name":"weather","description":"Get weather information for a location","type":"function"}]}'
 12    headers:
 13      Accept:
 14      - application/json
 15      Content-Type:
 16      - application/json
 17      User-Agent:
 18      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
 19    url: https://api.openai.com/v1/responses
 20    method: POST
 21  response:
 22    proto: HTTP/2.0
 23    proto_major: 2
 24    proto_minor: 0
 25    content_length: -1
 26    uncompressed: true
 27    body: |-
 28      {
 29        "id": "resp_0794220d1334844a0169b31966df7481a18fc500bd6187bc22",
 30        "object": "response",
 31        "created_at": 1773345126,
 32        "status": "completed",
 33        "background": false,
 34        "billing": {
 35          "payer": "developer"
 36        },
 37        "completed_at": 1773345130,
 38        "error": null,
 39        "frequency_penalty": 0.0,
 40        "incomplete_details": null,
 41        "instructions": null,
 42        "max_output_tokens": 4000,
 43        "max_tool_calls": null,
 44        "model": "o4-mini-2025-04-16",
 45        "output": [
 46          {
 47            "id": "rs_0794220d1334844a0169b31967906c81a18bc636b6a18e2e41",
 48            "type": "reasoning",
 49            "summary": []
 50          },
 51          {
 52            "id": "fc_0794220d1334844a0169b3196a066481a19ffe57c11e74273a",
 53            "type": "function_call",
 54            "status": "completed",
 55            "arguments": "{\"location\":\"Florence, Italy\"}",
 56            "call_id": "call_zS1DVzqYRCYZ6Ug86teTMYiq",
 57            "name": "weather"
 58          }
 59        ],
 60        "parallel_tool_calls": true,
 61        "presence_penalty": 0.0,
 62        "previous_response_id": null,
 63        "prompt_cache_key": null,
 64        "prompt_cache_retention": null,
 65        "reasoning": {
 66          "effort": "medium",
 67          "summary": null
 68        },
 69        "safety_identifier": null,
 70        "service_tier": "default",
 71        "store": false,
 72        "temperature": 1.0,
 73        "text": {
 74          "format": {
 75            "type": "text"
 76          },
 77          "verbosity": "medium"
 78        },
 79        "tool_choice": "auto",
 80        "tools": [
 81          {
 82            "type": "function",
 83            "description": "Get weather information for a location",
 84            "name": "weather",
 85            "parameters": {
 86              "properties": {
 87                "location": {
 88                  "description": "the city",
 89                  "type": "string"
 90                }
 91              },
 92              "required": [
 93                "location"
 94              ],
 95              "type": "object"
 96            },
 97            "strict": false
 98          }
 99        ],
100        "top_logprobs": 0,
101        "top_p": 1.0,
102        "truncation": "disabled",
103        "usage": {
104          "input_tokens": 60,
105          "input_tokens_details": {
106            "cached_tokens": 0
107          },
108          "output_tokens": 267,
109          "output_tokens_details": {
110            "reasoning_tokens": 192
111          },
112          "total_tokens": 327
113        },
114        "user": null,
115        "metadata": {}
116      }
117    headers:
118      Content-Type:
119      - application/json
120    status: 200 OK
121    code: 200
122    duration: 3.570247709s
123- id: 1
124  request:
125    proto: HTTP/1.1
126    proto_major: 1
127    proto_minor: 1
128    content_length: 723
129    host: ""
130    body: '{"max_output_tokens":4000,"store":false,"input":[{"content":"You are a helpful assistant","role":"developer"},{"content":[{"text":"What''s the weather in Florence,Italy?","type":"input_text"}],"role":"user"},{"arguments":"\"{\\\"location\\\":\\\"Florence, Italy\\\"}\"","call_id":"call_zS1DVzqYRCYZ6Ug86teTMYiq","name":"weather","type":"function_call"},{"call_id":"call_zS1DVzqYRCYZ6Ug86teTMYiq","output":"40 C","type":"function_call_output"}],"model":"o4-mini","tool_choice":"auto","tools":[{"strict":false,"parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"},"name":"weather","description":"Get weather information for a location","type":"function"}]}'
131    headers:
132      Accept:
133      - application/json
134      Content-Type:
135      - application/json
136      User-Agent:
137      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
138    url: https://api.openai.com/v1/responses
139    method: POST
140  response:
141    proto: HTTP/2.0
142    proto_major: 2
143    proto_minor: 0
144    content_length: -1
145    uncompressed: true
146    body: |-
147      {
148        "id": "resp_0d60a405fb29f78a0169b3196a732c81958630d18af0ec04d6",
149        "object": "response",
150        "created_at": 1773345130,
151        "status": "completed",
152        "background": false,
153        "billing": {
154          "payer": "developer"
155        },
156        "completed_at": 1773345131,
157        "error": null,
158        "frequency_penalty": 0.0,
159        "incomplete_details": null,
160        "instructions": null,
161        "max_output_tokens": 4000,
162        "max_tool_calls": null,
163        "model": "o4-mini-2025-04-16",
164        "output": [
165          {
166            "id": "msg_0d60a405fb29f78a0169b3196b31ac8195b1efa41424289039",
167            "type": "message",
168            "status": "completed",
169            "content": [
170              {
171                "type": "output_text",
172                "annotations": [],
173                "logprobs": [],
174                "text": "The current temperature in Florence, Italy is 40\u00b0C."
175              }
176            ],
177            "role": "assistant"
178          }
179        ],
180        "parallel_tool_calls": true,
181        "presence_penalty": 0.0,
182        "previous_response_id": null,
183        "prompt_cache_key": null,
184        "prompt_cache_retention": null,
185        "reasoning": {
186          "effort": "medium",
187          "summary": null
188        },
189        "safety_identifier": null,
190        "service_tier": "default",
191        "store": false,
192        "temperature": 1.0,
193        "text": {
194          "format": {
195            "type": "text"
196          },
197          "verbosity": "medium"
198        },
199        "tool_choice": "auto",
200        "tools": [
201          {
202            "type": "function",
203            "description": "Get weather information for a location",
204            "name": "weather",
205            "parameters": {
206              "properties": {
207                "location": {
208                  "description": "the city",
209                  "type": "string"
210                }
211              },
212              "required": [
213                "location"
214              ],
215              "type": "object"
216            },
217            "strict": false
218          }
219        ],
220        "top_logprobs": 0,
221        "top_p": 1.0,
222        "truncation": "disabled",
223        "usage": {
224          "input_tokens": 91,
225          "input_tokens_details": {
226            "cached_tokens": 0
227          },
228          "output_tokens": 16,
229          "output_tokens_details": {
230            "reasoning_tokens": 0
231          },
232          "total_tokens": 107
233        },
234        "user": null,
235        "metadata": {}
236      }
237    headers:
238      Content-Type:
239      - application/json
240    status: 200 OK
241    code: 200
242    duration: 1.310034417s