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://fantasy-playground-resource.openai.azure.com/openai/v1/responses
 20    method: POST
 21  response:
 22    proto: HTTP/2.0
 23    proto_major: 2
 24    proto_minor: 0
 25    content_length: 3536
 26    body: |-
 27      {
 28        "id": "resp_0d5a3f5fc3c510f50169b2ff847220819693f7f8870c970a80",
 29        "object": "response",
 30        "created_at": 1773338500,
 31        "status": "completed",
 32        "background": false,
 33        "completed_at": 1773338503,
 34        "content_filters": [
 35          {
 36            "blocked": false,
 37            "source_type": "prompt",
 38            "content_filter_raw": [],
 39            "content_filter_results": {
 40              "jailbreak": {
 41                "detected": false,
 42                "filtered": false
 43              },
 44              "hate": {
 45                "filtered": false,
 46                "severity": "safe"
 47              },
 48              "sexual": {
 49                "filtered": false,
 50                "severity": "safe"
 51              },
 52              "violence": {
 53                "filtered": false,
 54                "severity": "safe"
 55              },
 56              "self_harm": {
 57                "filtered": false,
 58                "severity": "safe"
 59              }
 60            },
 61            "content_filter_offsets": {
 62              "start_offset": 0,
 63              "end_offset": 711,
 64              "check_offset": 0
 65            }
 66          },
 67          {
 68            "blocked": false,
 69            "source_type": "completion",
 70            "content_filter_raw": [],
 71            "content_filter_results": {
 72              "hate": {
 73                "filtered": false,
 74                "severity": "safe"
 75              },
 76              "sexual": {
 77                "filtered": false,
 78                "severity": "safe"
 79              },
 80              "violence": {
 81                "filtered": false,
 82                "severity": "safe"
 83              },
 84              "self_harm": {
 85                "filtered": false,
 86                "severity": "safe"
 87              },
 88              "protected_material_code": {
 89                "detected": false,
 90                "filtered": false
 91              },
 92              "protected_material_text": {
 93                "detected": false,
 94                "filtered": false
 95              }
 96            },
 97            "content_filter_offsets": {
 98              "start_offset": 0,
 99              "end_offset": 924,
100              "check_offset": 0
101            }
102          }
103        ],
104        "error": null,
105        "frequency_penalty": 0.0,
106        "incomplete_details": null,
107        "instructions": null,
108        "max_output_tokens": 4000,
109        "max_tool_calls": null,
110        "model": "o4-mini",
111        "output": [
112          {
113            "id": "rs_0d5a3f5fc3c510f50169b2ff854c9c81969c28992fd9d7fbf5",
114            "type": "reasoning",
115            "summary": []
116          },
117          {
118            "id": "fc_0d5a3f5fc3c510f50169b2ff8648ac81968ee858470612f8fb",
119            "type": "function_call",
120            "status": "completed",
121            "arguments": "{\"location\":\"Florence, Italy\"}",
122            "call_id": "call_oRbm1gocfCvhluvIleM1B7gS",
123            "name": "weather"
124          }
125        ],
126        "parallel_tool_calls": true,
127        "presence_penalty": 0.0,
128        "previous_response_id": null,
129        "prompt_cache_key": null,
130        "prompt_cache_retention": null,
131        "reasoning": {
132          "effort": "medium",
133          "summary": null
134        },
135        "safety_identifier": null,
136        "service_tier": "default",
137        "store": false,
138        "temperature": 1.0,
139        "text": {
140          "format": {
141            "type": "text"
142          },
143          "verbosity": "medium"
144        },
145        "tool_choice": "auto",
146        "tools": [
147          {
148            "type": "function",
149            "description": "Get weather information for a location",
150            "name": "weather",
151            "parameters": {
152              "properties": {
153                "location": {
154                  "description": "the city",
155                  "type": "string"
156                }
157              },
158              "required": [
159                "location"
160              ],
161              "type": "object"
162            },
163            "strict": false
164          }
165        ],
166        "top_logprobs": 0,
167        "top_p": 1.0,
168        "truncation": "disabled",
169        "usage": {
170          "input_tokens": 61,
171          "input_tokens_details": {
172            "cached_tokens": 0
173          },
174          "output_tokens": 135,
175          "output_tokens_details": {
176            "reasoning_tokens": 64
177          },
178          "total_tokens": 196
179        },
180        "user": null,
181        "metadata": {}
182      }
183    headers:
184      Content-Type:
185      - application/json
186    status: 200 OK
187    code: 200
188    duration: 3.199884959s
189- id: 1
190  request:
191    proto: HTTP/1.1
192    proto_major: 1
193    proto_minor: 1
194    content_length: 723
195    host: ""
196    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_oRbm1gocfCvhluvIleM1B7gS","name":"weather","type":"function_call"},{"call_id":"call_oRbm1gocfCvhluvIleM1B7gS","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"}]}'
197    headers:
198      Accept:
199      - application/json
200      Content-Type:
201      - application/json
202      User-Agent:
203      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
204    url: https://fantasy-playground-resource.openai.azure.com/openai/v1/responses
205    method: POST
206  response:
207    proto: HTTP/2.0
208    proto_major: 2
209    proto_minor: 0
210    content_length: 2889
211    body: |-
212      {
213        "id": "resp_065b7e7b1587e20e0169b2ff87c14c8190b2868ef14a41003c",
214        "object": "response",
215        "created_at": 1773338503,
216        "status": "completed",
217        "background": false,
218        "completed_at": 1773338504,
219        "content_filters": [
220          {
221            "blocked": false,
222            "source_type": "completion",
223            "content_filter_raw": [],
224            "content_filter_results": {
225              "hate": {
226                "filtered": false,
227                "severity": "safe"
228              },
229              "sexual": {
230                "filtered": false,
231                "severity": "safe"
232              },
233              "violence": {
234                "filtered": false,
235                "severity": "safe"
236              },
237              "self_harm": {
238                "filtered": false,
239                "severity": "safe"
240              },
241              "protected_material_code": {
242                "detected": false,
243                "filtered": false
244              },
245              "protected_material_text": {
246                "detected": false,
247                "filtered": false
248              }
249            },
250            "content_filter_offsets": {
251              "start_offset": 0,
252              "end_offset": 514,
253              "check_offset": 0
254            }
255          }
256        ],
257        "error": null,
258        "frequency_penalty": 0.0,
259        "incomplete_details": null,
260        "instructions": null,
261        "max_output_tokens": 4000,
262        "max_tool_calls": null,
263        "model": "o4-mini",
264        "output": [
265          {
266            "id": "msg_065b7e7b1587e20e0169b2ff8881a881908702d31895cc8a8e",
267            "type": "message",
268            "status": "completed",
269            "content": [
270              {
271                "type": "output_text",
272                "annotations": [],
273                "logprobs": [],
274                "text": "The current temperature in Florence, Italy is 40\u00b0C. It's quite hot! Make sure to stay hydrated and seek shade during the hottest parts of the day."
275              }
276            ],
277            "role": "assistant"
278          }
279        ],
280        "parallel_tool_calls": true,
281        "presence_penalty": 0.0,
282        "previous_response_id": null,
283        "prompt_cache_key": null,
284        "prompt_cache_retention": null,
285        "reasoning": {
286          "effort": "medium",
287          "summary": null
288        },
289        "safety_identifier": null,
290        "service_tier": "default",
291        "store": false,
292        "temperature": 1.0,
293        "text": {
294          "format": {
295            "type": "text"
296          },
297          "verbosity": "medium"
298        },
299        "tool_choice": "auto",
300        "tools": [
301          {
302            "type": "function",
303            "description": "Get weather information for a location",
304            "name": "weather",
305            "parameters": {
306              "properties": {
307                "location": {
308                  "description": "the city",
309                  "type": "string"
310                }
311              },
312              "required": [
313                "location"
314              ],
315              "type": "object"
316            },
317            "strict": false
318          }
319        ],
320        "top_logprobs": 0,
321        "top_p": 1.0,
322        "truncation": "disabled",
323        "usage": {
324          "input_tokens": 92,
325          "input_tokens_details": {
326            "cached_tokens": 0
327          },
328          "output_tokens": 36,
329          "output_tokens_details": {
330            "reasoning_tokens": 0
331          },
332          "total_tokens": 128
333        },
334        "user": null,
335        "metadata": {}
336      }
337    headers:
338      Content-Type:
339      - application/json
340    status: 200 OK
341    code: 200
342    duration: 1.600062084s