interactions:
- request:
    body: '{"messages":[{"content":"You are a helpful assistant who talks with a Boston
      accent but is also very nice. Please use the provided tool to answer the user''s
      question.","role":"system"},{"content":"What is 2 + 2?","role":"user"}],"model":"gpt-4o-mini","stream":false,"temperature":0.5,"tools":[{"type":"function","function":{"name":"add","description":"Adds
      two numbers together","parameters":{"properties":{"a":{"type":"integer"},"b":{"type":"integer"}},"required":["a","b"],"type":"object"}}}]}'
    headers:
      ? !!python/object/apply:multidict._multidict.istr
      - Accept
      : - application/json
      ? !!python/object/apply:multidict._multidict.istr
      - Accept-Encoding
      : - gzip, deflate, zstd
      ? !!python/object/apply:multidict._multidict.istr
      - Connection
      : - keep-alive
      Content-Length:
      - '495'
      ? !!python/object/apply:multidict._multidict.istr
      - Content-Type
      : - application/json
      ? !!python/object/apply:multidict._multidict.istr
      - User-Agent
      : - OpenAI/Python 1.98.0
      ? !!python/object/apply:multidict._multidict.istr
      - X-Stainless-Arch
      : - arm64
      ? !!python/object/apply:multidict._multidict.istr
      - X-Stainless-Async
      : - 'false'
      ? !!python/object/apply:multidict._multidict.istr
      - X-Stainless-Lang
      : - python
      ? !!python/object/apply:multidict._multidict.istr
      - X-Stainless-OS
      : - MacOS
      ? !!python/object/apply:multidict._multidict.istr
      - X-Stainless-Package-Version
      : - 1.98.0
      ? !!python/object/apply:multidict._multidict.istr
      - X-Stainless-Runtime
      : - CPython
      ? !!python/object/apply:multidict._multidict.istr
      - X-Stainless-Runtime-Version
      : - 3.10.15
      ? !!python/object/apply:multidict._multidict.istr
      - x-stainless-retry-count
      : - '0'
    method: POST
    uri: https://api.openai.com/v1/chat/completions
  response:
    body:
      string: "{\n  \"id\": \"chatcmpl-C4qifVvZu4pVmTT9Wq50PMZXFXfu0\",\n  \"object\":
        \"chat.completion\",\n  \"created\": 1755272001,\n  \"model\": \"gpt-4o-mini-2024-07-18\",\n
        \ \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"role\":
        \"assistant\",\n        \"content\": null,\n        \"tool_calls\": [\n          {\n
        \           \"id\": \"call_AMIJLbrlmV1VEtIa4G0nE0Io\",\n            \"type\":
        \"function\",\n            \"function\": {\n              \"name\": \"add\",\n
        \             \"arguments\": \"{\\\"a\\\":2,\\\"b\\\":2}\"\n            }\n
        \         }\n        ],\n        \"refusal\": null,\n        \"annotations\":
        []\n      },\n      \"logprobs\": null,\n      \"finish_reason\": \"tool_calls\"\n
        \   }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 81,\n    \"completion_tokens\":
        17,\n    \"total_tokens\": 98,\n    \"prompt_tokens_details\": {\n      \"cached_tokens\":
        0,\n      \"audio_tokens\": 0\n    },\n    \"completion_tokens_details\":
        {\n      \"reasoning_tokens\": 0,\n      \"audio_tokens\": 0,\n      \"accepted_prediction_tokens\":
        0,\n      \"rejected_prediction_tokens\": 0\n    }\n  },\n  \"service_tier\":
        \"default\",\n  \"system_fingerprint\": \"fp_560af6e559\"\n}\n"
    headers:
      CF-RAY:
      - 96f9bff8ea5cd657-IAD
      Connection:
      - keep-alive
      Content-Encoding:
      - gzip
      Content-Type:
      - application/json
      Date:
      - Fri, 15 Aug 2025 15:33:22 GMT
      Server:
      - cloudflare
      Set-Cookie:
      - __cf_bm=3oxsnZYX8PHapBkUQJp6QrvXqRXmoZnjLtGMiKT51M0-1755272002-1.0.1.1-e4TZm9nOQKn8I567AxxD25FN9dZ9nE87gelXVwiZWLw53kVBaIrv9.aa5iVYYbx7s30EQkVC1RseyEdUDPHNCN_rmcHHrLOmK.xUg3E_s68;
        path=/; expires=Fri, 15-Aug-25 16:03:22 GMT; domain=.api.openai.com; HttpOnly;
        Secure; SameSite=None
      - _cfuvid=NNtatWEtfkEMWSWnd2Js3AbXxnF5hTU2kI440OND3Lw-1755272002262-0.0.1.1-604800000;
        path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
      Strict-Transport-Security:
      - max-age=31536000; includeSubDomains; preload
      Transfer-Encoding:
      - chunked
      X-Content-Type-Options:
      - nosniff
      access-control-expose-headers:
      - X-Request-ID
      alt-svc:
      - h3=":443"; ma=86400
      cf-cache-status:
      - DYNAMIC
      openai-organization:
      - datadog-4
      openai-processing-ms:
      - '696'
      openai-project:
      - proj_6cMiry5CHgK3zKotG0LtMb9H
      openai-version:
      - '2020-10-01'
      x-envoy-upstream-service-time:
      - '729'
      x-ratelimit-limit-requests:
      - '30000'
      x-ratelimit-limit-tokens:
      - '150000000'
      x-ratelimit-remaining-requests:
      - '29999'
      x-ratelimit-remaining-tokens:
      - '149999957'
      x-ratelimit-reset-requests:
      - 2ms
      x-ratelimit-reset-tokens:
      - 0s
      x-request-id:
      - req_e643dae130a64301b62406d1f67e0d7a
    status:
      code: 200
      message: OK
version: 1
