simple_object.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: 565
 10    host: ""
 11    body: '{"max_output_tokens":4000,"store":false,"input":[{"content":[{"text":"Generate information about a person named Alice who is 30 years old and lives in Paris.","type":"input_text"}],"role":"user"}],"model":"gpt-4o","text":{"format":{"name":"Person","schema":{"additionalProperties":false,"properties":{"age":{"description":"The person''s age","type":"integer"},"city":{"description":"The city where the person lives","type":"string"},"name":{"description":"The person''s name","type":"string"}},"required":["name","age","city"],"type":"object"},"type":"json_schema"}}}'
 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://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_0f20344bcc1b767601690fb5e04c9c81a08af63f829b10bb55",
 30        "object": "response",
 31        "created_at": 1762637280,
 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-2024-08-06",
 43        "output": [
 44          {
 45            "id": "msg_0f20344bcc1b767601690fb5e094e481a0833865218a771607",
 46            "type": "message",
 47            "status": "completed",
 48            "content": [
 49              {
 50                "type": "output_text",
 51                "annotations": [],
 52                "logprobs": [],
 53                "text": "{\"age\":30,\"city\":\"Paris\",\"name\":\"Alice\"}"
 54              }
 55            ],
 56            "role": "assistant"
 57          }
 58        ],
 59        "parallel_tool_calls": true,
 60        "previous_response_id": null,
 61        "prompt_cache_key": null,
 62        "prompt_cache_retention": null,
 63        "reasoning": {
 64          "effort": null,
 65          "summary": null
 66        },
 67        "safety_identifier": null,
 68        "service_tier": "default",
 69        "store": false,
 70        "temperature": 1.0,
 71        "text": {
 72          "format": {
 73            "type": "json_schema",
 74            "description": null,
 75            "name": "Person",
 76            "schema": {
 77              "additionalProperties": false,
 78              "properties": {
 79                "age": {
 80                  "description": "The person's age",
 81                  "type": "integer"
 82                },
 83                "city": {
 84                  "description": "The city where the person lives",
 85                  "type": "string"
 86                },
 87                "name": {
 88                  "description": "The person's name",
 89                  "type": "string"
 90                }
 91              },
 92              "required": [
 93                "name",
 94                "age",
 95                "city"
 96              ],
 97              "type": "object"
 98            },
 99            "strict": true
100          },
101          "verbosity": "medium"
102        },
103        "tool_choice": "auto",
104        "tools": [],
105        "top_logprobs": 0,
106        "top_p": 1.0,
107        "truncation": "disabled",
108        "usage": {
109          "input_tokens": 82,
110          "input_tokens_details": {
111            "cached_tokens": 0
112          },
113          "output_tokens": 14,
114          "output_tokens_details": {
115            "reasoning_tokens": 0
116          },
117          "total_tokens": 96
118        },
119        "user": null,
120        "metadata": {}
121      }
122    headers:
123      Content-Type:
124      - application/json
125    status: 200 OK
126    code: 200
127    duration: 816.505042ms