when:
  path: /v1/responses
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  body: '{"input":[{"content":[{"text":"You are a helpful weather assistant. Respond with realistic weather data.","type":"input_text"}],"role":"system","type":"message"},{"content":[{"text":"What''s the weather forecast for New York City today?","type":"input_text"}],"role":"user","type":"message"}],"model":"gpt-4o","text":{"format":{"name":"WeatherForecast","schema":{"$defs":{"Conditions":{"additionalProperties":false,"properties":{"description":{"type":"string"},"humidity_pct":{"format":"uint8","maximum":255,"minimum":0,"type":"integer"},"temperature_f":{"format":"double","type":"number"}},"required":["temperature_f","humidity_pct","description"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"city":{"type":"string"},"current":{"$ref":"#/$defs/Conditions"}},"required":["city","current"],"title":"WeatherForecast","type":"object"},"strict":true,"type":"json_schema"}}}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"background":false,"billing":{"payer":"developer"},"completed_at":0,"created_at":0,"error":null,"frequency_penalty":0.0,"id":"resp_REDACTED_1","incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"metadata":{},"model":"gpt-4o-2024-08-06","moderation":null,"object":"response","output":[{"content":[{"annotations":[],"logprobs":[],"text":"{\"city\":\"New York City\",\"current\":{\"temperature_f\":72,\"humidity_pct\":60,\"description\":\"Partly cloudy with a light breeze\"}}","type":"output_text"}],"id":"msg_REDACTED_1","role":"assistant","status":"completed","type":"message"}],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":"in_memory","reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"default","status":"completed","store":true,"temperature":1.0,"text":{"format":{"description":null,"name":"WeatherForecast","schema":{"$defs":{"Conditions":{"additionalProperties":false,"properties":{"description":{"type":"string"},"humidity_pct":{"format":"uint8","maximum":255,"minimum":0,"type":"integer"},"temperature_f":{"format":"double","type":"number"}},"required":["temperature_f","humidity_pct","description"],"type":"object"}},"additionalProperties":false,"properties":{"city":{"type":"string"},"current":{"$ref":"#/$defs/Conditions"}},"required":["city","current"],"title":"WeatherForecast","type":"object"},"strict":true,"type":"json_schema"},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":109,"input_tokens_details":{"cached_tokens":0},"output_tokens":30,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":139},"user":null}'
---
when:
  path: /v1/responses
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  body: '{"input":[{"content":[{"text":"You are a helpful weather assistant. Respond with realistic weather data.","type":"input_text"}],"role":"system","type":"message"},{"content":[{"text":"What''s the weather forecast for Los Angeles?","type":"input_text"}],"role":"user","type":"message"}],"model":"gpt-4o","text":{"format":{"name":"WeatherForecast","schema":{"$defs":{"Conditions":{"additionalProperties":false,"properties":{"description":{"type":"string"},"humidity_pct":{"format":"uint8","maximum":255,"minimum":0,"type":"integer"},"temperature_f":{"format":"double","type":"number"}},"required":["temperature_f","humidity_pct","description"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"city":{"type":"string"},"current":{"$ref":"#/$defs/Conditions"}},"required":["city","current"],"title":"WeatherForecast","type":"object"},"strict":true,"type":"json_schema"}}}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"background":false,"billing":{"payer":"developer"},"completed_at":0,"created_at":0,"error":null,"frequency_penalty":0.0,"id":"resp_REDACTED_2","incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"metadata":{},"model":"gpt-4o-2024-08-06","moderation":null,"object":"response","output":[{"content":[{"annotations":[],"logprobs":[],"text":"{\"city\":\"Los Angeles\",\"current\":{\"temperature_f\":75.2,\"humidity_pct\":64,\"description\":\"sunny\"}}","type":"output_text"}],"id":"msg_REDACTED_2","role":"assistant","status":"completed","type":"message"}],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":"in_memory","reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"default","status":"completed","store":true,"temperature":1.0,"text":{"format":{"description":null,"name":"WeatherForecast","schema":{"$defs":{"Conditions":{"additionalProperties":false,"properties":{"description":{"type":"string"},"humidity_pct":{"format":"uint8","maximum":255,"minimum":0,"type":"integer"},"temperature_f":{"format":"double","type":"number"}},"required":["temperature_f","humidity_pct","description"],"type":"object"}},"additionalProperties":false,"properties":{"city":{"type":"string"},"current":{"$ref":"#/$defs/Conditions"}},"required":["city","current"],"title":"WeatherForecast","type":"object"},"strict":true,"type":"json_schema"},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":107,"input_tokens_details":{"cached_tokens":0},"output_tokens":26,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":133},"user":null}'
---
when:
  path: /v1/responses
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  body: '{"input":[{"content":[{"text":"You are a helpful weather assistant. Respond with realistic weather data.","type":"input_text"}],"role":"system","type":"message"},{"content":[{"text":"What''s the weather forecast for Chicago?","type":"input_text"}],"role":"user","type":"message"}],"model":"gpt-4o","text":{"format":{"name":"WeatherForecast","schema":{"$defs":{"Conditions":{"additionalProperties":false,"properties":{"description":{"type":"string"},"humidity_pct":{"format":"uint8","maximum":255,"minimum":0,"type":"integer"},"temperature_f":{"format":"double","type":"number"}},"required":["temperature_f","humidity_pct","description"],"type":"object"}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"city":{"type":"string"},"current":{"$ref":"#/$defs/Conditions"}},"required":["city","current"],"title":"WeatherForecast","type":"object"},"strict":true,"type":"json_schema"}}}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"background":false,"billing":{"payer":"developer"},"completed_at":0,"created_at":0,"error":null,"frequency_penalty":0.0,"id":"resp_REDACTED_3","incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"metadata":{},"model":"gpt-4o-2024-08-06","moderation":null,"object":"response","output":[{"content":[{"annotations":[],"logprobs":[],"text":"{\"city\":\"Chicago\",\"current\":{\"temperature_f\":64.0,\"humidity_pct\":72,\"description\":\"Partly cloudy with a breeze\"}}","type":"output_text"}],"id":"msg_REDACTED_3","role":"assistant","status":"completed","type":"message"}],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":"in_memory","reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"default","status":"completed","store":true,"temperature":1.0,"text":{"format":{"description":null,"name":"WeatherForecast","schema":{"$defs":{"Conditions":{"additionalProperties":false,"properties":{"description":{"type":"string"},"humidity_pct":{"format":"uint8","maximum":255,"minimum":0,"type":"integer"},"temperature_f":{"format":"double","type":"number"}},"required":["temperature_f","humidity_pct","description"],"type":"object"}},"additionalProperties":false,"properties":{"city":{"type":"string"},"current":{"$ref":"#/$defs/Conditions"}},"required":["city","current"],"title":"WeatherForecast","type":"object"},"strict":true,"type":"json_schema"},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":106,"input_tokens_details":{"cached_tokens":0},"output_tokens":29,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":135},"user":null}'
