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: 491
 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":"gpt-5-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      - OpenAI/Go 2.7.1
 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: 1866
 26    body: |-
 27      {
 28        "id": "resp_01ac948c31d692b30169039979ab2c819096befaa857fd6bd5",
 29        "object": "response",
 30        "created_at": 1761843577,
 31        "status": "completed",
 32        "background": false,
 33        "content_filters": null,
 34        "error": null,
 35        "incomplete_details": null,
 36        "instructions": null,
 37        "max_output_tokens": 4000,
 38        "max_tool_calls": null,
 39        "model": "gpt-5-mini",
 40        "output": [
 41          {
 42            "id": "rs_01ac948c31d692b3016903997a0748819094955c49dc9168e3",
 43            "type": "reasoning",
 44            "summary": []
 45          },
 46          {
 47            "id": "fc_01ac948c31d692b3016903997b1a648190b3e9f6259464edf9",
 48            "type": "function_call",
 49            "status": "completed",
 50            "arguments": "{\"location\":\"Florence, Italy\"}",
 51            "call_id": "call_4aipZJRtNzKfQ9VlnBGhI9zH",
 52            "name": "weather"
 53          }
 54        ],
 55        "parallel_tool_calls": true,
 56        "previous_response_id": null,
 57        "prompt_cache_key": null,
 58        "reasoning": {
 59          "effort": "medium",
 60          "summary": null
 61        },
 62        "safety_identifier": null,
 63        "service_tier": "default",
 64        "store": false,
 65        "temperature": 1.0,
 66        "text": {
 67          "format": {
 68            "type": "text"
 69          },
 70          "verbosity": "medium"
 71        },
 72        "tool_choice": "auto",
 73        "tools": [
 74          {
 75            "type": "function",
 76            "description": "Get weather information for a location",
 77            "name": "weather",
 78            "parameters": {
 79              "properties": {
 80                "location": {
 81                  "description": "the city",
 82                  "type": "string"
 83                }
 84              },
 85              "required": [
 86                "location"
 87              ],
 88              "type": "object"
 89            },
 90            "strict": false
 91          }
 92        ],
 93        "top_logprobs": 0,
 94        "top_p": 1.0,
 95        "truncation": "disabled",
 96        "usage": {
 97          "input_tokens": 63,
 98          "input_tokens_details": {
 99            "cached_tokens": 0
100          },
101          "output_tokens": 22,
102          "output_tokens_details": {
103            "reasoning_tokens": 0
104          },
105          "total_tokens": 85
106        },
107        "user": null,
108        "metadata": {}
109      }
110    headers:
111      Content-Type:
112      - application/json
113    status: 200 OK
114    code: 200
115    duration: 2.717185959s
116- id: 1
117  request:
118    proto: HTTP/1.1
119    proto_major: 1
120    proto_minor: 1
121    content_length: 726
122    host: ""
123    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_4aipZJRtNzKfQ9VlnBGhI9zH","name":"weather","type":"function_call"},{"call_id":"call_4aipZJRtNzKfQ9VlnBGhI9zH","output":"40 C","type":"function_call_output"}],"model":"gpt-5-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"}]}'
124    headers:
125      Accept:
126      - application/json
127      Content-Type:
128      - application/json
129      User-Agent:
130      - OpenAI/Go 2.7.1
131    url: https://fantasy-playground-resource.openai.azure.com/openai/v1/responses
132    method: POST
133  response:
134    proto: HTTP/2.0
135    proto_major: 2
136    proto_minor: 0
137    content_length: 2085
138    body: |-
139      {
140        "id": "resp_066ab1dbe82e48a5016903997c6398819681f9e88196773871",
141        "object": "response",
142        "created_at": 1761843580,
143        "status": "completed",
144        "background": false,
145        "content_filters": null,
146        "error": null,
147        "incomplete_details": null,
148        "instructions": null,
149        "max_output_tokens": 4000,
150        "max_tool_calls": null,
151        "model": "gpt-5-mini",
152        "output": [
153          {
154            "id": "rs_066ab1dbe82e48a5016903997cc74c8196add4b9db1dde2dfb",
155            "type": "reasoning",
156            "summary": []
157          },
158          {
159            "id": "msg_066ab1dbe82e48a5016903997ec4dc81968c78c2634a2d1a89",
160            "type": "message",
161            "status": "completed",
162            "content": [
163              {
164                "type": "output_text",
165                "annotations": [],
166                "logprobs": [],
167                "text": "Current temperature in Florence, Italy: 40\u00b0C (104\u00b0F).\n\nWant more details (hourly forecast, wind, precipitation) or tips for staying comfortable in the heat?"
168              }
169            ],
170            "role": "assistant"
171          }
172        ],
173        "parallel_tool_calls": true,
174        "previous_response_id": null,
175        "prompt_cache_key": null,
176        "reasoning": {
177          "effort": "medium",
178          "summary": null
179        },
180        "safety_identifier": null,
181        "service_tier": "default",
182        "store": false,
183        "temperature": 1.0,
184        "text": {
185          "format": {
186            "type": "text"
187          },
188          "verbosity": "medium"
189        },
190        "tool_choice": "auto",
191        "tools": [
192          {
193            "type": "function",
194            "description": "Get weather information for a location",
195            "name": "weather",
196            "parameters": {
197              "properties": {
198                "location": {
199                  "description": "the city",
200                  "type": "string"
201                }
202              },
203              "required": [
204                "location"
205              ],
206              "type": "object"
207            },
208            "strict": false
209          }
210        ],
211        "top_logprobs": 0,
212        "top_p": 1.0,
213        "truncation": "disabled",
214        "usage": {
215          "input_tokens": 94,
216          "input_tokens_details": {
217            "cached_tokens": 0
218          },
219          "output_tokens": 169,
220          "output_tokens_details": {
221            "reasoning_tokens": 128
222          },
223          "total_tokens": 263
224        },
225        "user": null,
226        "metadata": {}
227      }
228    headers:
229      Content-Type:
230      - application/json
231    status: 200 OK
232    code: 200
233    duration: 3.237920417s