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: 489
 10    host: ""
 11    body: '{"max_output_tokens":4000,"store":false,"input":[{"content":"You are a helpful assistant","role":"system"},{"content":[{"text":"What''s the weather in Florence,Italy?","type":"input_text"}],"role":"user"}],"model":"gpt-4o-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.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_010f0015da2b88280168f237ea6c18819e8ce2b72d44ac08b4",
 30        "object": "response",
 31        "created_at": 1760704490,
 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-4o-mini-2024-07-18",
 43        "output": [
 44          {
 45            "id": "fc_010f0015da2b88280168f237eb2b7c819eae6470cdee55da77",
 46            "type": "function_call",
 47            "status": "completed",
 48            "arguments": "{\"location\":\"Florence, Italy\"}",
 49            "call_id": "call_59vzLlFlML0RoHvlJxgWZZ7m",
 50            "name": "weather"
 51          }
 52        ],
 53        "parallel_tool_calls": true,
 54        "previous_response_id": null,
 55        "prompt_cache_key": null,
 56        "reasoning": {
 57          "effort": null,
 58          "summary": null
 59        },
 60        "safety_identifier": null,
 61        "service_tier": "default",
 62        "store": false,
 63        "temperature": 1.0,
 64        "text": {
 65          "format": {
 66            "type": "text"
 67          },
 68          "verbosity": "medium"
 69        },
 70        "tool_choice": "auto",
 71        "tools": [
 72          {
 73            "type": "function",
 74            "description": "Get weather information for a location",
 75            "name": "weather",
 76            "parameters": {
 77              "properties": {
 78                "location": {
 79                  "description": "the city",
 80                  "type": "string"
 81                }
 82              },
 83              "required": [
 84                "location"
 85              ],
 86              "type": "object"
 87            },
 88            "strict": false
 89          }
 90        ],
 91        "top_logprobs": 0,
 92        "top_p": 1.0,
 93        "truncation": "disabled",
 94        "usage": {
 95          "input_tokens": 58,
 96          "input_tokens_details": {
 97            "cached_tokens": 0
 98          },
 99          "output_tokens": 17,
100          "output_tokens_details": {
101            "reasoning_tokens": 0
102          },
103          "total_tokens": 75
104        },
105        "user": null,
106        "metadata": {}
107      }
108    headers:
109      Content-Type:
110      - application/json
111    status: 200 OK
112    code: 200
113    duration: 1.0454615s
114- id: 1
115  request:
116    proto: HTTP/1.1
117    proto_major: 1
118    proto_minor: 1
119    content_length: 724
120    host: ""
121    body: '{"max_output_tokens":4000,"store":false,"input":[{"content":"You are a helpful assistant","role":"system"},{"content":[{"text":"What''s the weather in Florence,Italy?","type":"input_text"}],"role":"user"},{"arguments":"\"{\\\"location\\\":\\\"Florence, Italy\\\"}\"","call_id":"call_59vzLlFlML0RoHvlJxgWZZ7m","name":"weather","type":"function_call"},{"call_id":"call_59vzLlFlML0RoHvlJxgWZZ7m","output":"40 C","type":"function_call_output"}],"model":"gpt-4o-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"}]}'
122    headers:
123      Accept:
124      - application/json
125      Content-Type:
126      - application/json
127      User-Agent:
128      - OpenAI/Go 2.3.0
129    url: https://api.openai.com/v1/responses
130    method: POST
131  response:
132    proto: HTTP/2.0
133    proto_major: 2
134    proto_minor: 0
135    content_length: -1
136    uncompressed: true
137    body: |-
138      {
139        "id": "resp_0de529b5396cb7cc0168f237eb7d9c81a3aca3fef6a9749a5f",
140        "object": "response",
141        "created_at": 1760704491,
142        "status": "completed",
143        "background": false,
144        "billing": {
145          "payer": "developer"
146        },
147        "error": null,
148        "incomplete_details": null,
149        "instructions": null,
150        "max_output_tokens": 4000,
151        "max_tool_calls": null,
152        "model": "gpt-4o-mini-2024-07-18",
153        "output": [
154          {
155            "id": "msg_0de529b5396cb7cc0168f237ebf0ec81a39a23afc61ca30582",
156            "type": "message",
157            "status": "completed",
158            "content": [
159              {
160                "type": "output_text",
161                "annotations": [],
162                "logprobs": [],
163                "text": "The current temperature in Florence, Italy, is 40\u00b0C. If you need more details like humidity or forecast, just let me know!"
164              }
165            ],
166            "role": "assistant"
167          }
168        ],
169        "parallel_tool_calls": true,
170        "previous_response_id": null,
171        "prompt_cache_key": null,
172        "reasoning": {
173          "effort": null,
174          "summary": null
175        },
176        "safety_identifier": null,
177        "service_tier": "default",
178        "store": false,
179        "temperature": 1.0,
180        "text": {
181          "format": {
182            "type": "text"
183          },
184          "verbosity": "medium"
185        },
186        "tool_choice": "auto",
187        "tools": [
188          {
189            "type": "function",
190            "description": "Get weather information for a location",
191            "name": "weather",
192            "parameters": {
193              "properties": {
194                "location": {
195                  "description": "the city",
196                  "type": "string"
197                }
198              },
199              "required": [
200                "location"
201              ],
202              "type": "object"
203            },
204            "strict": false
205          }
206        ],
207        "top_logprobs": 0,
208        "top_p": 1.0,
209        "truncation": "disabled",
210        "usage": {
211          "input_tokens": 83,
212          "input_tokens_details": {
213            "cached_tokens": 0
214          },
215          "output_tokens": 30,
216          "output_tokens_details": {
217            "reasoning_tokens": 0
218          },
219          "total_tokens": 113
220        },
221        "user": null,
222        "metadata": {}
223      }
224    headers:
225      Content-Type:
226      - application/json
227    status: 200 OK
228    code: 200
229    duration: 1.421569667s