interactions:
- request:
    body: '{"messages":[{"role":"user","content":"Hello, world!"}],"model":"gpt-4o","stream":false,"tool_choice":"auto","tools":[{"type":"function","function":{"name":"foo_tool","description":"Return
      foo string","parameters":{"additionalProperties":false,"properties":{},"type":"object"}}},{"type":"function","function":{"name":"calculate_square_tool","description":"Calculates
      the square of a number","parameters":{"additionalProperties":false,"properties":{"x":{"type":"integer"}},"required":["x"],"type":"object"},"strict":true}}]}'
    headers:
      accept:
      - application/json
      accept-encoding:
      - gzip, deflate
      connection:
      - keep-alive
      content-length:
      - '523'
      content-type:
      - application/json
      cookie:
      - _cfuvid=7yprwreREaQe1ApoE3CUHN.9GZrN53KIrD0S10.M5g0-1750870032909-0.0.1.1-604800000
      host:
      - api.openai.com
      user-agent:
      - pydantic-ai/0.4.4
      x-stainless-arch:
      - arm64
      x-stainless-async:
      - async:asyncio
      x-stainless-lang:
      - python
      x-stainless-os:
      - MacOS
      x-stainless-package-version:
      - 1.98.0
      x-stainless-read-timeout:
      - '600'
      x-stainless-retry-count:
      - '0'
      x-stainless-runtime:
      - CPython
      x-stainless-runtime-version:
      - 3.10.15
    method: POST
    uri: https://api.openai.com/v1/chat/completions
  response:
    body:
      string: !!binary |
        H4sIAAAAAAAAA4xSy27bMBC86yvYPVuFrNiW4ksAJwfnHBQIUAQCTa5kthSXIammbuB/LyjZltwH
        kIsOOzujmeG+J4yBkrBmIPY8iNbqdPNrOee71+Xy7bBdbVY39PR8Lx++PL+6TSFgFhm0+4YinFmf
        BbVWY1BkBlg45AGj6rxY3pS3RZbnPdCSRB1pjQ3pgtI8yxdpVqbZ6kTckxLoYc2+Jowx9t5/o0Uj
        8SesWTY7T1r0njcI68sSY+BIxwlw75UP3ASYjaAgE9D0rreoNX1iW3pjghv2yAYCO1DHAkl+uJsS
        Hdad59G36bSeANwYCjzm7i2/nJDjxaSmxjra+T+oUCuj/L5yyD2ZaMgHstCjx4Sxl76M7iofWEet
        DVWg79j/bjUf5GBsfwTnp6IgUOB6nBdn0pVaJTFwpf2kTBBc7FGOzLF53klFEyCZZP7bzL+0h9zK
        NB+RHwEh0AaUlXUolbgOPK45jLf5v7VLx71h8Oh+KIFVUOjiO0iseaeHswF/8AHbqlamQWedGm6n
        thXPy/K2LHaLBSTH5DcAAAD//wMApte0ukQDAAA=
    headers:
      CF-RAY:
      - 96769f27bc9e874c-IAD
      Connection:
      - keep-alive
      Content-Encoding:
      - gzip
      Content-Type:
      - application/json
      Date:
      - Wed, 30 Jul 2025 17:37:03 GMT
      Server:
      - cloudflare
      Set-Cookie:
      - __cf_bm=T0zb7FLDJ8ygDf3MzBLdIqTyYQ.CrAlR7bsro8ejYBo-1753897023-1.0.1.1-C6lZJmZHFShaYZLFZ0EE42dpP4SXsThutCJFmSigDxuaU7_I_pf5s.DDRcvoMbqIYg1._otssyRclL7qOE.PrQ9Plz0OzA608S.ZkULmei0;
        path=/; expires=Wed, 30-Jul-25 18:07:03 GMT; domain=.api.openai.com; HttpOnly;
        Secure; SameSite=None
      - _cfuvid=xRE5bdx5qd8AFyvYenRWWh4YjuD1HEAj_VRUi0LANJk-1753897023184-0.0.1.1-604800000;
        path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
      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:
      - '363'
      openai-project:
      - proj_6cMiry5CHgK3zKotG0LtMb9H
      openai-version:
      - '2020-10-01'
      strict-transport-security:
      - max-age=31536000; includeSubDomains; preload
      x-envoy-upstream-service-time:
      - '371'
      x-ratelimit-limit-requests:
      - '10000'
      x-ratelimit-limit-tokens:
      - '30000000'
      x-ratelimit-remaining-requests:
      - '9999'
      x-ratelimit-remaining-tokens:
      - '29999994'
      x-ratelimit-reset-requests:
      - 6ms
      x-ratelimit-reset-tokens:
      - 0s
      x-request-id:
      - req_c5241741af5a197ac91878287bee3aed
    status:
      code: 200
      message: OK
version: 1
