interactions:
- request:
    body: '{"input":[{"content":"What is the sum of 1 and 2?","role":"user"}],"model":"gpt-4o","include":[],"instructions":"You
      are a helpful assistant specialized in addition calculations. Do not retry the
      tool call if it errors and instead return immediately","stream":false,"tools":[{"name":"add","parameters":{"properties":{"a":{"title":"A","type":"integer"},"b":{"title":"B","type":"integer"}},"required":["a","b"],"title":"add_args","type":"object","additionalProperties":false},"strict":true,"type":"function","description":"Add
      two numbers together"}]}'
    headers:
      accept:
      - application/json
      accept-encoding:
      - gzip, deflate
      connection:
      - keep-alive
      content-length:
      - '549'
      content-type:
      - application/json
      host:
      - api.openai.com
      user-agent:
      - Agents/Python 0.0.0
      x-stainless-arch:
      - arm64
      x-stainless-async:
      - async:asyncio
      x-stainless-lang:
      - python
      x-stainless-os:
      - MacOS
      x-stainless-package-version:
      - 1.66.5
      x-stainless-read-timeout:
      - '600'
      x-stainless-retry-count:
      - '0'
      x-stainless-runtime:
      - CPython
      x-stainless-runtime-version:
      - 3.10.13
    method: POST
    uri: https://api.openai.com/v1/responses
  response:
    body:
      string: !!binary |
        H4sIAAAAAAAAA5RVTY/bNhC9+1cMeN4NJNkrf9xSdIEAPTRALy26gTAmRzITilTIYZvtwv+9IGXL
        sus26EWQ5s08vvng6G0BILQSOxCewtDUa6Xqsiq2lZKbcltuqlrJvdzUS9pWq6Iulu32abtaq20t
        l9t6KR4Sgdt/JslnEmcDjXbpCZlUgwkr16vqqS6f6k3GAiPHkGKk6wdDTGoMIu+dFzuw0Zhs0Pbs
        0Shi1CZco4F9lKydzWy/uQjoCRAOZIY2GsAQdGC0DGEgqdHov0iBtoBK6RQHEo2MBjPHO/jRgXUM
        nti/Ah8I2DmTfAzoFjRDVhgAbWIJTKiSc/QWdN+T0shkXsdkevzWuMhD5IbdF7JX0nunyCTN3cCP
        K/dYFdXqsdg8FvWprDlQ7OD3BQDAW34CCH4dKIW10ea8m6Qth2R4bGcrp2aSUkVq5p5WpcRytdos
        i/VetnebmSkSYTPy5NcPX56//lIPIbrnn55//bk4fDxs1m3XXyIs9lkTKnUxou9iT5ZzY95eBL6I
        XfnwIvYvYlcdL373ZiFjxwXAp1yLAT0aQ6ZJzcgJJ3/2kUbY0x/axdCcB3BUP5XaEwZnte3E7lRH
        QW3rPM+cAERHljwyNSH2PfrXE7oAOJ6G1vmUZosmjAcz9UMKidlevitO1m98Oal1vsfL96yD2W/K
        dDxjTPDgtBwLGtmJCQjfn4ZLWRUF6fWQjTsQ75UC/tOBjf2efAB2HfGB/HeamCrfE5MPswxyyd1A
        njVd21PbbwxJpGaTqd9PxDfytWXqyIsZepy7iv1/sP7wf1gXd/iFp69Re1JTfadcbkRMX59m0ZMQ
        VKpB3wUxB09aTltyhpwXEJqP82Lm6VrcaBSBvc5LNg39ze1gNzTDfP58tBLPjVc64N6c92sM2NFl
        OLW9Wk7Lonr4JzBbvG+XHSEPpC6RxWKmV9wuvXJzD7jHO13Vf6Nmx2hmiqtiujsx0NWvoydGhZwH
        8rg4/g0AAP//AwDs86ai7gYAAA==
    headers:
      CF-RAY:
      - 923d96ab48188c73-EWR
      Connection:
      - keep-alive
      Content-Encoding:
      - gzip
      Content-Type:
      - application/json
      Date:
      - Fri, 21 Mar 2025 12:52:48 GMT
      Server:
      - cloudflare
      Set-Cookie:
      - __cf_bm=cZPJDVpj4j3PHPYNrKuidCIAQIW1enHgh4IGVDiVt_0-1742561568-1.0.1.1-m9m6K6XjHrcQWfRM32rvoDzFf70M8ZFGs_.rdqqOKJ3kXEb2VGIY6y157buTWQjJdnT5r618PEUjbD0DLoVA3k42bens6iMjo.kctiWvft8;
        path=/; expires=Fri, 21-Mar-25 13:22:48 GMT; domain=.api.openai.com; HttpOnly;
        Secure; SameSite=None
      - _cfuvid=Yf26_aX.WiMQbk_ELzGkfqUe8o3waw7g.tcX8DGb11w-1742561568988-0.0.1.1-604800000;
        path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
      Transfer-Encoding:
      - chunked
      X-Content-Type-Options:
      - nosniff
      alt-svc:
      - h3=":443"; ma=86400
      cf-cache-status:
      - DYNAMIC
      openai-organization:
      - datadog-staging
      openai-processing-ms:
      - '418'
      openai-version:
      - '2020-10-01'
      strict-transport-security:
      - max-age=31536000; includeSubDomains; preload
      x-request-id:
      - req_4e63fdfd30481e31e64dddd3aee193a8
    status:
      code: 200
      message: OK
- request:
    body: '{"input":[{"content":"What is the sum of 1 and 2?","role":"user"},{"arguments":"{\"a\":1,\"b\":2}","call_id":"call_HkEqS6psuoEKEXO0hPh87fgm","name":"add","type":"function_call","id":"fc_67dd6120edd08191be41ca1448307bcf03f95947d96c3963","status":"completed"},{"call_id":"call_HkEqS6psuoEKEXO0hPh87fgm","output":"An
      error occurred while running the tool. Please try again. Error: This is a test
      error","type":"function_call_output"}],"model":"gpt-4o","include":[],"instructions":"You
      are a helpful assistant specialized in addition calculations. Do not retry the
      tool call if it errors and instead return immediately","stream":false,"tools":[{"name":"add","parameters":{"properties":{"a":{"title":"A","type":"integer"},"b":{"title":"B","type":"integer"}},"required":["a","b"],"title":"add_args","type":"object","additionalProperties":false},"strict":true,"type":"function","description":"Add
      two numbers together"}]}'
    headers:
      accept:
      - application/json
      accept-encoding:
      - gzip, deflate
      connection:
      - keep-alive
      content-length:
      - '914'
      content-type:
      - application/json
      cookie:
      - __cf_bm=cZPJDVpj4j3PHPYNrKuidCIAQIW1enHgh4IGVDiVt_0-1742561568-1.0.1.1-m9m6K6XjHrcQWfRM32rvoDzFf70M8ZFGs_.rdqqOKJ3kXEb2VGIY6y157buTWQjJdnT5r618PEUjbD0DLoVA3k42bens6iMjo.kctiWvft8;
        _cfuvid=Yf26_aX.WiMQbk_ELzGkfqUe8o3waw7g.tcX8DGb11w-1742561568988-0.0.1.1-604800000
      host:
      - api.openai.com
      user-agent:
      - Agents/Python 0.0.0
      x-stainless-arch:
      - arm64
      x-stainless-async:
      - async:asyncio
      x-stainless-lang:
      - python
      x-stainless-os:
      - MacOS
      x-stainless-package-version:
      - 1.66.5
      x-stainless-read-timeout:
      - '600'
      x-stainless-retry-count:
      - '0'
      x-stainless-runtime:
      - CPython
      x-stainless-runtime-version:
      - 3.10.13
    method: POST
    uri: https://api.openai.com/v1/responses
  response:
    body:
      string: !!binary |
        H4sIAAAAAAAAA5RVTY/jNgy951cQuuxlZxAnGSfObYteCvTQa7EYGIxFO+rqw5WozqaL/PdCcuzY
        6UyBXoKIj6Qovkf6xwpAKCmOIDyFvi73UpbFpti8VIdDURWI2MgCN5tdK3dFi+ttW71Uu72symZb
        lVvxOSVwpz+o4TGJs4EGe+MJmWSNCSv2u81LWbyUVcYCI8eQYhpnek1Mcggi750XR7BR62xQdvSo
        JTEqHZZoYB8bVs7mbL+7COgJEM6k+zZqwBBUYLQMoadGoVZ/kwRlAaVUKQ4a1E3UmHM8w88OrGPw
        xP4CfCZg53Ty0aBaUAy5wgBoU5bAhDI5R29BGUNSIZO+DI8x+L12kfvINbtvZBelGydJp5q7np92
        7mmz3uye1oendXlraw4UR/i6AgD4kX8BBF96SmGGQsBu6HUGBiJN6CYeD+W+STyeyrZa7/cFldV6
        Xx5O7/KYc3zESwa90/nmqaV3qHGWyd6rnVe8qHpsB32/Rw8OyXIE8QtDIDIh9d4TvGFq9dB0eDsr
        TcD+omwH7CbmKBMVonmGX4k/heQCaF1KAdj33mFzBufB018qKIYU45+XBaC1jnFU0tfXCbve/g2W
        dHrNBPXoUWvSdVJInRSSAtlHGuB0mYuhHqeizgRN/HvC4KyynTjeWiWobZ3nmROA6MiSR6Y6RGPQ
        X27oCuB6myTnU2db1GG4mMn0KSRme/G8vllzf283tc4bvJ9nBGW/6aXDHcMDz041A/+RnZiA8LFE
        22jzaN51Iik0XvXZeATxRUrgNwc2mhP5AOw6SqTdAyya4U45E2LqvCEmH2YvyC13PXlWtLQnch8M
        qUjFg5y/LHQwK19Zpo68mKHXhWRO/5H1p/+TdfVOfuHpz6g8ycVQ5bc8FDGdXmfRUyEoZY2+C2IO
        jtM4rO4ZMm5F1L/Nm5nVtXqoUQT2Km/+JPqH6WDX1/1cfz7aBkfipQp40uPSj3mRTeJUdrExt7vt
        538Ds6/BpLsGmzPJe+R6NatXPG7izfY94L2806h+lJodo55VXJbT7MRAi++ZIUaJnAV5XV3/AQAA
        //8DAOx3lO+DBwAA
    headers:
      CF-RAY:
      - 923d96aee83e8c73-EWR
      Connection:
      - keep-alive
      Content-Encoding:
      - gzip
      Content-Type:
      - application/json
      Date:
      - Fri, 21 Mar 2025 12:52:49 GMT
      Server:
      - cloudflare
      Transfer-Encoding:
      - chunked
      X-Content-Type-Options:
      - nosniff
      alt-svc:
      - h3=":443"; ma=86400
      cf-cache-status:
      - DYNAMIC
      openai-organization:
      - datadog-staging
      openai-processing-ms:
      - '826'
      openai-version:
      - '2020-10-01'
      strict-transport-security:
      - max-age=31536000; includeSubDomains; preload
      x-request-id:
      - req_fdcdd9a1b13901ff430cb48e04d39d67
    status:
      code: 200
      message: OK
version: 1
