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