interactions:
- request:
    body: '{"input":[{"role":"user","content":"What is the current population of Tokyo?
      Be brief."}],"model":"gpt-4o-mini","tools":[{"type":"web_search_preview"}]}'
    headers:
      User-Agent:
      - X-USER-AGENT-XXX
      accept:
      - application/json
      accept-encoding:
      - ACCEPT-ENCODING-XXX
      authorization:
      - AUTHORIZATION-XXX
      connection:
      - keep-alive
      content-length:
      - '152'
      content-type:
      - application/json
      host:
      - api.openai.com
      x-stainless-arch:
      - X-STAINLESS-ARCH-XXX
      x-stainless-async:
      - 'false'
      x-stainless-lang:
      - python
      x-stainless-os:
      - X-STAINLESS-OS-XXX
      x-stainless-package-version:
      - 1.83.0
      x-stainless-read-timeout:
      - X-STAINLESS-READ-TIMEOUT-XXX
      x-stainless-retry-count:
      - '0'
      x-stainless-runtime:
      - CPython
      x-stainless-runtime-version:
      - 3.12.10
    method: POST
    uri: https://api.openai.com/v1/responses
  response:
    body:
      string: "{\n  \"id\": \"resp_00e3e58899415fd50069730e878c3481948af3ddbba6a770e5\",\n
        \ \"object\": \"response\",\n  \"created_at\": 1769148039,\n  \"status\":
        \"completed\",\n  \"background\": false,\n  \"billing\": {\n    \"payer\":
        \"developer\"\n  },\n  \"completed_at\": 1769148042,\n  \"error\": null,\n
        \ \"frequency_penalty\": 0.0,\n  \"incomplete_details\": null,\n  \"instructions\":
        null,\n  \"max_output_tokens\": null,\n  \"max_tool_calls\": null,\n  \"model\":
        \"gpt-4o-mini-2024-07-18\",\n  \"output\": [\n    {\n      \"id\": \"ws_00e3e58899415fd50069730e8811808194a111d2203570f498\",\n
        \     \"type\": \"web_search_call\",\n      \"status\": \"completed\",\n      \"action\":
        {\n        \"type\": \"search\",\n        \"queries\": [\n          \"current
        population of Tokyo 2023\"\n        ],\n        \"query\": \"current population
        of Tokyo 2023\"\n      }\n    },\n    {\n      \"id\": \"msg_00e3e58899415fd50069730e88e734819495450812cdddde0b\",\n
        \     \"type\": \"message\",\n      \"status\": \"completed\",\n      \"content\":
        [\n        {\n          \"type\": \"output_text\",\n          \"annotations\":
        [\n            {\n              \"type\": \"url_citation\",\n              \"end_index\":
        153,\n              \"start_index\": 62,\n              \"title\": \"Demographics
        of Tokyo\",\n              \"url\": \"https://en.wikipedia.org/wiki/Demographics_of_Tokyo?utm_source=openai\"\n
        \           },\n            {\n              \"type\": \"url_citation\",\n
        \             \"end_index\": 366,\n              \"start_index\": 270,\n              \"title\":
        \"Tokyo, Japan Metro Area Population (1950-2025) | MacroTrends\",\n              \"url\":
        \"https://www.macrotrends.net/cities/21671/tokyo/population?utm_source=openai\"\n
        \           },\n            {\n              \"type\": \"url_citation\",\n
        \             \"end_index\": 614,\n              \"start_index\": 469,\n              \"title\":
        \"Tokyo Third in UN Ranking of Global Megacities at 33.4 Million | Nippon.com\",\n
        \             \"url\": \"https://www.nippon.com/en/japan-data/h02639/tokyo-third-in-un-ranking-of-global-megacities-at-33-4-million.html?utm_source=openai\"\n
        \           }\n          ],\n          \"logprobs\": [],\n          \"text\":
        \"As of 2025, Tokyo's population is approximately 14.2 million. ([en.wikipedia.org](https://en.wikipedia.org/wiki/Demographics_of_Tokyo?utm_source=openai))
        However, the Tokyo metropolitan area, which includes surrounding prefectures,
        has a population of about 37 million. ([macrotrends.net](https://www.macrotrends.net/cities/21671/tokyo/population?utm_source=openai))
        In 2025, Tokyo was the third most populous urban agglomeration globally, following
        Jakarta and Dhaka. ([nippon.com](https://www.nippon.com/en/japan-data/h02639/tokyo-third-in-un-ranking-of-global-megacities-at-33-4-million.html?utm_source=openai))
        \"\n        }\n      ],\n      \"role\": \"assistant\"\n    }\n  ],\n  \"parallel_tool_calls\":
        true,\n  \"presence_penalty\": 0.0,\n  \"previous_response_id\": null,\n  \"prompt_cache_key\":
        null,\n  \"prompt_cache_retention\": null,\n  \"reasoning\": {\n    \"effort\":
        null,\n    \"summary\": null\n  },\n  \"safety_identifier\": null,\n  \"service_tier\":
        \"default\",\n  \"store\": true,\n  \"temperature\": 1.0,\n  \"text\": {\n
        \   \"format\": {\n      \"type\": \"text\"\n    },\n    \"verbosity\": \"medium\"\n
        \ },\n  \"tool_choice\": \"auto\",\n  \"tools\": [\n    {\n      \"type\":
        \"web_search_preview\",\n      \"search_context_size\": \"medium\",\n      \"user_location\":
        {\n        \"type\": \"approximate\",\n        \"city\": null,\n        \"country\":
        \"US\",\n        \"region\": null,\n        \"timezone\": null\n      }\n
        \   }\n  ],\n  \"top_logprobs\": 0,\n  \"top_p\": 1.0,\n  \"truncation\":
        \"disabled\",\n  \"usage\": {\n    \"input_tokens\": 312,\n    \"input_tokens_details\":
        {\n      \"cached_tokens\": 0\n    },\n    \"output_tokens\": 181,\n    \"output_tokens_details\":
        {\n      \"reasoning_tokens\": 0\n    },\n    \"total_tokens\": 493\n  },\n
        \ \"user\": null,\n  \"metadata\": {}\n}"
    headers:
      CF-RAY:
      - CF-RAY-XXX
      Connection:
      - keep-alive
      Content-Type:
      - application/json
      Date:
      - Fri, 23 Jan 2026 06:00:42 GMT
      Server:
      - cloudflare
      Set-Cookie:
      - SET-COOKIE-XXX
      Strict-Transport-Security:
      - STS-XXX
      Transfer-Encoding:
      - chunked
      X-Content-Type-Options:
      - X-CONTENT-TYPE-XXX
      alt-svc:
      - h3=":443"; ma=86400
      cf-cache-status:
      - DYNAMIC
      openai-organization:
      - OPENAI-ORG-XXX
      openai-processing-ms:
      - '3147'
      openai-project:
      - OPENAI-PROJECT-XXX
      openai-version:
      - '2020-10-01'
      x-envoy-upstream-service-time:
      - '3150'
      x-ratelimit-limit-requests:
      - X-RATELIMIT-LIMIT-REQUESTS-XXX
      x-ratelimit-limit-tokens:
      - X-RATELIMIT-LIMIT-TOKENS-XXX
      x-ratelimit-remaining-requests:
      - X-RATELIMIT-REMAINING-REQUESTS-XXX
      x-ratelimit-remaining-tokens:
      - X-RATELIMIT-REMAINING-TOKENS-XXX
      x-ratelimit-reset-requests:
      - X-RATELIMIT-RESET-REQUESTS-XXX
      x-ratelimit-reset-tokens:
      - X-RATELIMIT-RESET-TOKENS-XXX
      x-request-id:
      - X-REQUEST-ID-XXX
    status:
      code: 200
      message: OK
version: 1
