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      - 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: 1865
 26    body: |-
 27      {
 28        "id": "resp_0459c9bec5645f0d016903998adb588197a8cb12bdc148c0a5",
 29        "object": "response",
 30        "created_at": 1761843594,
 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": "o4-mini",
 40        "output": [
 41          {
 42            "id": "rs_0459c9bec5645f0d016903998b51ec819785c9c9da0ebeec48",
 43            "type": "reasoning",
 44            "summary": []
 45          },
 46          {
 47            "id": "fc_0459c9bec5645f0d016903998c5314819785e0c10f576a252d",
 48            "type": "function_call",
 49            "status": "completed",
 50            "arguments": "{\"location\":\"Florence, Italy\"}",
 51            "call_id": "call_KsHVstPJ9P9QHZsBVz58GUc6",
 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": 60,
 98          "input_tokens_details": {
 99            "cached_tokens": 0
100          },
101          "output_tokens": 83,
102          "output_tokens_details": {
103            "reasoning_tokens": 64
104          },
105          "total_tokens": 143
106        },
107        "user": null,
108        "metadata": {}
109      }
110    headers:
111      Content-Type:
112      - application/json
113    status: 200 OK
114    code: 200
115    duration: 1.805354834s
116- id: 1
117  request:
118    proto: HTTP/1.1
119    proto_major: 1
120    proto_minor: 1
121    content_length: 723
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_KsHVstPJ9P9QHZsBVz58GUc6","name":"weather","type":"function_call"},{"call_id":"call_KsHVstPJ9P9QHZsBVz58GUc6","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"}]}'
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: 2111
138    body: |-
139      {
140        "id": "resp_087bd2312c2d3baa016903998caab081959b29b07fd8007b50",
141        "object": "response",
142        "created_at": 1761843596,
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": "o4-mini",
152        "output": [
153          {
154            "id": "rs_087bd2312c2d3baa016903998d0c088195808061e1055e926d",
155            "type": "reasoning",
156            "summary": []
157          },
158          {
159            "id": "msg_087bd2312c2d3baa016903998efbd48195b7dd1b75dcad44c6",
160            "type": "message",
161            "status": "completed",
162            "content": [
163              {
164                "type": "output_text",
165                "annotations": [],
166                "logprobs": [],
167                "text": "The current temperature in Florence, Italy is 40 \u00b0C. It\u2019s quite hot\u2014make sure to stay hydrated, seek shade when you can, and limit prolonged sun exposure if you\u2019re out and about."
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": 91,
216          "input_tokens_details": {
217            "cached_tokens": 0
218          },
219          "output_tokens": 112,
220          "output_tokens_details": {
221            "reasoning_tokens": 64
222          },
223          "total_tokens": 203
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.146838417s