interactions:
- request:
    body: '{"messages":[{"role":"user","content":"Use the math_exp tool to add four
      plus four."}],"model":"gpt-5","tools":[{"type":"custom","custom":{"name":"math_exp","description":"Creates
      valid mathematical expressions","format":{"type":"grammar","grammar":{"syntax":"lark","definition":"\nstart:
      expr\nexpr: term (SP ADD SP term)* -> add\n| term\nterm: factor (SP MUL SP factor)*
      -> mul\n| factor\nfactor: INT\nSP: \" \"\nADD: \"+\"\nMUL: \"*\"\n%import common.INT\n"}}}}]}'
    headers:
      accept:
      - application/json
      accept-encoding:
      - gzip, deflate
      connection:
      - keep-alive
      content-length:
      - '466'
      content-type:
      - application/json
      host:
      - api.openai.com
      user-agent:
      - OpenAI/Python 1.91.0
      x-stainless-arch:
      - arm64
      x-stainless-async:
      - 'false'
      x-stainless-lang:
      - python
      x-stainless-os:
      - MacOS
      x-stainless-package-version:
      - 1.91.0
      x-stainless-read-timeout:
      - '600'
      x-stainless-retry-count:
      - '0'
      x-stainless-runtime:
      - CPython
      x-stainless-runtime-version:
      - 3.12.11
    method: POST
    uri: https://api.openai.com/v1/chat/completions
  response:
    body:
      string: !!binary |
        H4sIAAAAAAAAA3RT0W6bMBR95yssvzZMQCEpvFXtJi1Ss27SXjZVyDMXcGtszzZTuij/XtkkQNKU
        B2T5+Jxzfe71LkAIswoXCNOWWNopHt4tX27N5rHJ4+u/9cO3+7z9sllG67b6teH/8cIx5J9noPbI
        +kRlpzhYJsUAUw3EglONV1m2Sq7T/MYDnayAO1qjbJiFSZRkYXQTRqsDr5WMgsEF+h0ghNDO/12F
        ooItLlC0OO50YAxpABfjIYSwltztYGIMM5YIixcTSKWwIFzRoud8BlgpeUkJ55Px8O1m6ykmwnn5
        XTXrH1+zu/yePn/ePmx+LrleP9J+5jdIvypfEO2Nld05etgtzowQwoJ0ntcR25awVWdMn4jqfQNS
        dIVSfALvg0vrp9mVNdS9Ifx9FkQIaYnrpA/j6YDsx9xrJphpSw3ESOH8Z+kFR0NvhfuTBmGlZads
        aeULePEkjQdVPI3PDI3TA2qlJXwC0ixbXBAsK7CE+RaOU0MJbaGaqNP0kL5icgYEs0u+L+eS9hAA
        E82kEufJhwYTQCkoC1WpNFSMnl56OqbBPbCPjo1B+5KxAf2PUSgtA+1aUkFNej4MPzavxkJX1kw0
        oJVm4wsI9sEbAAAA//8DAGftrEX+AwAA
    headers:
      CF-RAY:
      - 9724cebf8b2dd6f4-IAD
      Connection:
      - keep-alive
      Content-Encoding:
      - gzip
      Content-Type:
      - application/json
      Date:
      - Wed, 20 Aug 2025 20:58:22 GMT
      Server:
      - cloudflare
      Set-Cookie:
      - __cf_bm=K.tOaHC5Lf45ysCtP6USNAPbZgHy78FNC72qcH2X.Fo-1755723502-1.0.1.1-6gJa9NKR2lxcxp5WDhmS4X6xrB2zYsLnov89sMAupSGbYt8Hdbc_awPaQqbnQOdNmztzKstiMU8L_wFbmzt9f0Q7Qg_sho4.ecYi5i7_EiA;
        path=/; expires=Wed, 20-Aug-25 21:28:22 GMT; domain=.api.openai.com; HttpOnly;
        Secure; SameSite=None
      - _cfuvid=CkJlTNRJNqcMv3f9_YvhdnJLTb4jyPNrZypv2Xi49h4-1755723502477-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-staging
      openai-processing-ms:
      - '8067'
      openai-project:
      - proj_gt6TQZPRbZfoY2J9AQlEJMpd
      openai-version:
      - '2020-10-01'
      x-envoy-upstream-service-time:
      - '8091'
      x-ratelimit-limit-requests:
      - '15000'
      x-ratelimit-limit-tokens:
      - '40000000'
      x-ratelimit-remaining-requests:
      - '14999'
      x-ratelimit-remaining-tokens:
      - '39999987'
      x-ratelimit-reset-requests:
      - 4ms
      x-ratelimit-reset-tokens:
      - 0s
      x-request-id:
      - req_611954e1d30494f191e4680d1c99b6e2
    status:
      code: 200
      message: OK
version: 1
