ch33_limits

show:
mock turns=0 · messages=0
live turns=0 · messages=0
scenario a_run_within_the_limit_completes_normally
scenario a_run_within_the_limit_completes_normally · 5.1ms
turn 1 · 0.9ms · asked for: check_order
budget {"limit_set": 10, "step_number": 1}
model mock · 0.9ms · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
tools declared to the mock model {"names": ["check_order"], "consulted": false}
context ignored by the mock model {"messages": 2, "roles": ["system", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
turn 1 · 0.2ms
budget {"limit_set": 10, "step_number": 2}
tool check_order · 0.2ms · given: order_id=A100 · returned: order A100: shipped
args {"order_id": "A100"}
result {"value": "order A100: shipped"}
turn 2 · 0.2ms · responded with: Order A100 has shipped.
budget {"limit_set": 10, "step_number": 3}
model mock · 0.2ms · responded with: Order A100 has shipped.
context sent — 4 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolorder A100: shipped
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
tools declared to the mock model {"names": ["check_order"], "consulted": false}
context ignored by the mock model {"messages": 4, "roles": ["system", "human", "ai", "tool"]}
reply
rolecontent
[0]aiOrder A100 has shipped.
completed {"raised": false, "limit_set": 10, "steps_taken": 3, "final_answer": "Order A100 has shipped."}
scenario a_run_within_the_limit_completes_normally · 2561.6ms
turn 1 · 1392.4ms · 304 in / 40 out · asked for: check_order
budget {"limit_set": 10, "step_number": 1}
model live · 1392.3ms (model provider 1163.6 · library 228.7) · 304 in / 40 out · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length376
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.14.7
{
  "messages": [
    {
      "content": "Answer briefly.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "check_order",
        "description": "Check the status of an order by id.",
        "parameters": {
          "properties": {
            "order_id": {
              "type": "string"
            }
          },
          "required": [
            "order_id"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:57:56 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 db94b8e3e5f45aab1e90db086a8debc0.cloudfront.net (CloudFront)
x-amz-cf-idK8JwHZAXoYgvfVBNuMcdCAJWFxfnc4-_0bmdTPkeWOdqRay7l4R4WQ==
x-amz-cf-popDEN52-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id32f8ec6f4dad49157ce059de868245ce
{
  "id": "f982492d-fc2f-4b45-8a35-824ae6435bd4",
  "object": "chat.completion",
  "created": 1789336676,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_ET_wSrYXyarOhidOpPI4eUp4061",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"A100\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 304,
    "completion_tokens": 40,
    "total_tokens": 344,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 176
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
turn 1 · 1.1ms
budget {"limit_set": 10, "step_number": 2}
tool check_order · 1.0ms · given: order_id=A100 · returned: order A100: shipped
args {"order_id": "A100"}
result {"value": "order A100: shipped"}
turn 2 · 1161.5ms · 361 in / 8 out · responded with: Order A100 has been shipped.
budget {"limit_set": 10, "step_number": 3}
model live · 1161.4ms (model provider 1152.0 · library 9.4) · 361 in / 8 out · responded with: Order A100 has been shipped.
context sent — 4 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolorder A100: shipped
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length664
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.14.7
{
  "messages": [
    {
      "content": "Answer briefly.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_wSrYXyarOhidOpPI4eUp4061",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ]
    },
    {
      "content": "order A100: shipped",
      "role": "tool",
      "tool_call_id": "call_00_ET_wSrYXyarOhidOpPI4eUp4061"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "check_order",
        "description": "Check the status of an order by id.",
        "parameters": {
          "properties": {
            "order_id": {
              "type": "string"
            }
          },
          "required": [
            "order_id"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:57:57 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 1a5bcf25cf6144683736a6579a7fb98e.cloudfront.net (CloudFront)
x-amz-cf-idk7VPkytwONvKfWEET-y6l8ROVQulyLDi_13wP7mqc0ulWxQaQ46CWg==
x-amz-cf-popDEN53-P2
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id83494694ed81f4a78324ed5eb58f630c
{
  "id": "11cb943f-ca0f-4cef-8d16-d8d4cb7ed2e8",
  "object": "chat.completion",
  "created": 1789336677,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order A100 has been shipped.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 361,
    "completion_tokens": 8,
    "total_tokens": 369,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 233
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder A100 has been shipped.
completed {"raised": false, "limit_set": 10, "steps_taken": 3, "final_answer": "Order A100 has been shipped."}
scenario a_run_that_never_stops_hits_the_limit_and_raises
scenario a_run_that_never_stops_hits_the_limit_and_raises · 2.8ms
turn 1 · 0.2ms · asked for: check_order
budget {"limit_set": 4, "step_number": 1}
model mock · 0.2ms · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
tools declared to the mock model {"names": ["check_order"], "consulted": false}
context ignored by the mock model {"messages": 2, "roles": ["system", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
turn 1 · 0.1ms
budget {"limit_set": 4, "step_number": 2}
tool check_order · 0.1ms · given: order_id=A100 · returned: order A100: shipped
args {"order_id": "A100"}
result {"value": "order A100: shipped"}
turn 2 · 0.2ms · asked for: check_order
budget {"limit_set": 4, "step_number": 3}
model mock · 0.2ms · asked for: check_order
context sent — 4 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolorder A100: shipped
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
tools declared to the mock model {"names": ["check_order"], "consulted": false}
context ignored by the mock model {"messages": 4, "roles": ["system", "human", "ai", "tool"]}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
turn 2 · 0.1ms
budget {"limit_set": 4, "step_number": 4}
tool check_order · 0.1ms · given: order_id=A100 · returned: order A100: shipped
args {"order_id": "A100"}
result {"value": "order A100: shipped"}
hit_the_limit {"raised": true, "limit_set": 4, "steps_taken": 4, "error_type": "GraphRecursionError", "error": "Recursion limit of 4 reached without hitting a stop condition. You can increase the limit by setting the `recursion_limit` config key.\nFor troubleshooting, visit: https://docs.langchain.com/oss/python"}
scenario a_run_that_never_stops_hits_the_limit_and_raises · 2285.7ms
turn 1 · 1396.3ms · 304 in / 40 out · asked for: check_order
budget {"limit_set": 4, "step_number": 1}
model live · 1396.2ms (model provider 1386.1 · library 10.2) · 304 in / 40 out · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length376
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.14.7
{
  "messages": [
    {
      "content": "Answer briefly.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "check_order",
        "description": "Check the status of an order by id.",
        "parameters": {
          "properties": {
            "order_id": {
              "type": "string"
            }
          },
          "required": [
            "order_id"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:57:58 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 5257b3c7acd3727a389946b312557ff2.cloudfront.net (CloudFront)
x-amz-cf-iduWrHL3yfFLTB2FqklRT_TTnFR1FIhY7ivoLiUb32xwJUfNLUcTmxbg==
x-amz-cf-popDEN52-P2
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id62c823b1ffad458c724c545855dc5542
{
  "id": "a564d2b4-2946-4419-be8c-20ddae211c0b",
  "object": "chat.completion",
  "created": 1789336678,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_ET_U0JB61skvN2GykmSu6dW2223",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"A100\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 304,
    "completion_tokens": 40,
    "total_tokens": 344,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 176
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
turn 1 · 0.7ms
budget {"limit_set": 4, "step_number": 2}
tool check_order · 0.6ms · given: order_id=A100 · returned: order A100: shipped
args {"order_id": "A100"}
result {"value": "order A100: shipped"}
turn 2 · 880.8ms · 361 in / 8 out · responded with: Order A100 has been shipped.
budget {"limit_set": 4, "step_number": 3}
model live · 880.7ms (model provider 871.3 · library 9.4) · 361 in / 8 out · responded with: Order A100 has been shipped.
context sent — 4 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolorder A100: shipped
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length664
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.14.7
{
  "messages": [
    {
      "content": "Answer briefly.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_U0JB61skvN2GykmSu6dW2223",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ]
    },
    {
      "content": "order A100: shipped",
      "role": "tool",
      "tool_call_id": "call_00_ET_U0JB61skvN2GykmSu6dW2223"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "check_order",
        "description": "Check the status of an order by id.",
        "parameters": {
          "properties": {
            "order_id": {
              "type": "string"
            }
          },
          "required": [
            "order_id"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:58:00 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 f0a2a95cb4d25b2414a9c1a7a754943e.cloudfront.net (CloudFront)
x-amz-cf-idfjqAWviZvbKzeIIxItksoF1paXxt6Gg8_gJ6ft4gFw1Y0WAtHeuB4g==
x-amz-cf-popDEN52-P2
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id57000b3d8023340687dde6808e36bd5a
{
  "id": "8b2f916d-0324-44b3-8e32-eb6888931022",
  "object": "chat.completion",
  "created": 1789336679,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order A100 has been shipped.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 361,
    "completion_tokens": 8,
    "total_tokens": 369,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 233
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder A100 has been shipped.
unexpectedly_completed {"raised": false, "limit_set": 4, "steps_taken": 3}
scenario the_limit_is_set_per_call_not_per_graph
scenario the_limit_is_set_per_call_not_per_graph · 4.8ms
turn 1 · 0.2ms · asked for: check_order
budget {"limit_set": 2, "step_number": 1}
model mock · 0.2ms · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
tools declared to the mock model {"names": ["check_order"], "consulted": false}
context ignored by the mock model {"messages": 2, "roles": ["system", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
turn 1 · 0.2ms
budget {"limit_set": 2, "step_number": 2}
tool check_order · 0.1ms · given: order_id=A100 · returned: order A100: shipped
args {"order_id": "A100"}
result {"value": "order A100: shipped"}
turn 1 · 0.2ms · asked for: check_order
budget {"limit_set": 50, "step_number": 1}
model mock · 0.2ms · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
tools declared to the mock model {"names": ["check_order"], "consulted": false}
context ignored by the mock model {"messages": 2, "roles": ["system", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
turn 1 · 0.1ms
budget {"limit_set": 50, "step_number": 2}
tool check_order · 0.1ms · given: order_id=A100 · returned: order A100: shipped
args {"order_id": "A100"}
result {"value": "order A100: shipped"}
turn 2 · 0.2ms · responded with: Order A100 has shipped.
budget {"limit_set": 50, "step_number": 3}
model mock · 0.2ms · responded with: Order A100 has shipped.
context sent — 4 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolorder A100: shipped
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
tools declared to the mock model {"names": ["check_order"], "consulted": false}
context ignored by the mock model {"messages": 4, "roles": ["system", "human", "ai", "tool"]}
reply
rolecontent
[0]aiOrder A100 has shipped.
same_graph_two_budgets {"limit_set_low": 2, "raised_with_limit_2": true, "steps_taken_with_limit_2": 2, "limit_set_high": 50, "raised_with_limit_50": false, "steps_taken_with_limit_50": 3}
scenario the_limit_is_set_per_call_not_per_graph · 3431.0ms
turn 1 · 1132.7ms · 304 in / 52 out · asked for: check_order
budget {"limit_set": 2, "step_number": 1}
model live · 1132.7ms (model provider 1124.7 · library 8.0) · 304 in / 52 out · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length376
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.14.7
{
  "messages": [
    {
      "content": "Answer briefly.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "check_order",
        "description": "Check the status of an order by id.",
        "parameters": {
          "properties": {
            "order_id": {
              "type": "string"
            }
          },
          "required": [
            "order_id"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:58:00 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 7232dc40bbe46d9fbc45ec194ca42e44.cloudfront.net (CloudFront)
x-amz-cf-idzN4qOZjeDKoCeJd3_COhCU6pvA8RQvjwsKm2LCNicRr3xON6gpmPKA==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id061f639741fb0cf51d3b9d015ad9dfc5
{
  "id": "c984d5f3-a288-44f1-a727-7678a75fb0e5",
  "object": "chat.completion",
  "created": 1789336680,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user asks about order A100. Let me check.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_0aHnFIYeaNR5SaPgyo1w8917",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"A100\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 304,
    "completion_tokens": 52,
    "total_tokens": 356,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 12
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 176
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
turn 1 · 0.4ms
budget {"limit_set": 2, "step_number": 2}
tool check_order · 0.4ms · given: order_id=A100 · returned: order A100: shipped
args {"order_id": "A100"}
result {"value": "order A100: shipped"}
turn 1 · 966.6ms · 304 in / 57 out · asked for: check_order
budget {"limit_set": 50, "step_number": 1}
model live · 966.6ms (model provider 959.0 · library 7.6) · 304 in / 57 out · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length376
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.14.7
{
  "messages": [
    {
      "content": "Answer briefly.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "check_order",
        "description": "Check the status of an order by id.",
        "parameters": {
          "properties": {
            "order_id": {
              "type": "string"
            }
          },
          "required": [
            "order_id"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:58:02 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 4929d4de9a9273ff00ec9ce0c2790a76.cloudfront.net (CloudFront)
x-amz-cf-idYBvwJSNl2WsbmxCjBnS1fLauj2q13KpZPuia6C6aTbQV9FHIlLP4Jg==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id0cb6cb8e4b0737f57113e10deaedf1d5
{
  "id": "0b0e2e2a-6882-49bb-abaf-0a5d1e7dbff9",
  "object": "chat.completion",
  "created": 1789336681,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user wants to check order A100. I should call the check_order tool.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_uJKiTjVaxStBIWQ221Hg8909",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"A100\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 304,
    "completion_tokens": 57,
    "total_tokens": 361,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 17
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 176
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
turn 1 · 0.5ms
budget {"limit_set": 50, "step_number": 2}
tool check_order · 0.5ms · given: order_id=A100 · returned: order A100: shipped
args {"order_id": "A100"}
result {"value": "order A100: shipped"}
turn 2 · 1322.1ms · 378 in / 9 out · responded with: Order A100 is **shipped**.
budget {"limit_set": 50, "step_number": 3}
model live · 1322.0ms (model provider 1311.6 · library 10.4) · 378 in / 9 out · responded with: Order A100 is **shipped**.
context sent — 4 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolorder A100: shipped
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length752
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.14.7
{
  "messages": [
    {
      "content": "Answer briefly.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_uJKiTjVaxStBIWQ221Hg8909",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user wants to check order A100. I should call the check_order tool."
    },
    {
      "content": "order A100: shipped",
      "role": "tool",
      "tool_call_id": "call_00_uJKiTjVaxStBIWQ221Hg8909"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "check_order",
        "description": "Check the status of an order by id.",
        "parameters": {
          "properties": {
            "order_id": {
              "type": "string"
            }
          },
          "required": [
            "order_id"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:58:03 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 f0a23c6d336f59cb74bd83cf12146082.cloudfront.net (CloudFront)
x-amz-cf-idR6VvhtY1_YfrbIQqtPPklDBsFqC_Doi5z1ycN3MlWY7zFT9V7NF5Bg==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-ide6a4ae8e982e8532646eb4f7f36183cd
{
  "id": "b9c7e4a0-eb26-4432-9490-a3f37b178883",
  "object": "chat.completion",
  "created": 1789336682,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order A100 is **shipped**.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 378,
    "completion_tokens": 9,
    "total_tokens": 387,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 250
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder A100 is **shipped**.
same_graph_two_budgets {"limit_set_low": 2, "raised_with_limit_2": true, "steps_taken_with_limit_2": 2, "limit_set_high": 50, "raised_with_limit_50": false, "steps_taken_with_limit_50": 3}
scenario a_nested_graph_spends_the_parents_budget
scenario a_nested_graph_spends_the_parents_budget · 7.0ms
turn 1 · 0.2ms · asked for: check_order
budget {"limit_set": 4, "step_number": 1}
model mock · 0.2ms · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
tools declared to the mock model {"names": ["check_order"], "consulted": false}
context ignored by the mock model {"messages": 2, "roles": ["system", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
turn 1 · 0.1ms
budget {"limit_set": 4, "step_number": 2}
tool check_order · 0.1ms · given: order_id=A100 · returned: order A100: shipped
args {"order_id": "A100"}
result {"value": "order A100: shipped"}
turn 2 · 0.2ms · asked for: check_order
budget {"limit_set": 4, "step_number": 3}
model mock · 0.2ms · asked for: check_order
context sent — 4 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolorder A100: shipped
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
tools declared to the mock model {"names": ["check_order"], "consulted": false}
context ignored by the mock model {"messages": 4, "roles": ["system", "human", "ai", "tool"]}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
turn 2 · 0.1ms
budget {"limit_set": 4, "step_number": 4}
tool check_order · 0.1ms · given: order_id=A100 · returned: order A100: shipped
args {"order_id": "A100"}
result {"value": "order A100: shipped"}
turn 1 · 0.2ms · asked for: check_order
budget {"limit_set": 4, "step_number": 1}
model mock · 0.2ms · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
tools declared to the mock model {"names": ["check_order"], "consulted": false}
context ignored by the mock model {"messages": 2, "roles": ["system", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
turn 1 · 0.1ms
budget {"limit_set": 4, "step_number": 2}
tool check_order · 0.1ms · given: order_id=A100 · returned: order A100: shipped
args {"order_id": "A100"}
result {"value": "order A100: shipped"}
turn 2 · 0.2ms · asked for: check_order
budget {"limit_set": 4, "step_number": 3}
model mock · 0.2ms · asked for: check_order
context sent — 4 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolorder A100: shipped
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
tools declared to the mock model {"names": ["check_order"], "consulted": false}
context ignored by the mock model {"messages": 4, "roles": ["system", "human", "ai", "tool"]}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
turn 2 · 0.1ms
budget {"limit_set": 4, "step_number": 4}
tool check_order · 0.1ms · given: order_id=A100 · returned: order A100: shipped
args {"order_id": "A100"}
result {"value": "order A100: shipped"}
nested_vs_isolated {"limit_set": 4, "nested_as_node_raised": true, "nested_steps_taken": 4, "invoked_separately_raised": false, "isolated_child_steps_taken": 4, "wrapper_final_message": "child hit its own limit, parent continues"}
scenario a_nested_graph_spends_the_parents_budget · 4485.5ms
turn 1 · 1259.6ms · 304 in / 54 out · asked for: check_order
budget {"limit_set": 4, "step_number": 1}
model live · 1259.5ms (model provider 1251.1 · library 8.4) · 304 in / 54 out · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length376
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.14.7
{
  "messages": [
    {
      "content": "Answer briefly.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "check_order",
        "description": "Check the status of an order by id.",
        "parameters": {
          "properties": {
            "order_id": {
              "type": "string"
            }
          },
          "required": [
            "order_id"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:58:04 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 ce0550edbf762d293c4c6df7f9952974.cloudfront.net (CloudFront)
x-amz-cf-idtvOFSIvTlYQdpgpv4cJdkn_JYl7-h0ZJmzWWjegM93uJaixuJ76c6A==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id2460c535cc6b2a0f7bfceb7bc82c6d1f
{
  "id": "458e6861-ee46-4b25-93ef-c4318fa112f3",
  "object": "chat.completion",
  "created": 1789336684,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user asks about order A100. I should call check_order.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_V2l12T2iGBystxPqbpIh7154",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"A100\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 304,
    "completion_tokens": 54,
    "total_tokens": 358,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 14
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 176
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
turn 1 · 0.5ms
budget {"limit_set": 4, "step_number": 2}
tool check_order · 0.4ms · given: order_id=A100 · returned: order A100: shipped
args {"order_id": "A100"}
result {"value": "order A100: shipped"}
turn 2 · 1020.8ms · 375 in / 9 out · responded with: Order A100 is **shipped**.
budget {"limit_set": 4, "step_number": 3}
model live · 1020.8ms (model provider 1012.7 · library 8.0) · 375 in / 9 out · responded with: Order A100 is **shipped**.
context sent — 4 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolorder A100: shipped
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length739
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.14.7
{
  "messages": [
    {
      "content": "Answer briefly.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_V2l12T2iGBystxPqbpIh7154",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order A100. I should call check_order."
    },
    {
      "content": "order A100: shipped",
      "role": "tool",
      "tool_call_id": "call_00_V2l12T2iGBystxPqbpIh7154"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "check_order",
        "description": "Check the status of an order by id.",
        "parameters": {
          "properties": {
            "order_id": {
              "type": "string"
            }
          },
          "required": [
            "order_id"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:58:05 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 5d351175d5947d478733fbecdab866f6.cloudfront.net (CloudFront)
x-amz-cf-idSYCaiLEc7W8t46HwRcnt7p1pwWULI97bVZJQnG_iYRuGQq21RrXqsA==
x-amz-cf-popDEN52-P2
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id2dfe15bb28e7175c82cdb8afe631eb71
{
  "id": "8bb15625-02a2-4b85-a393-cef3104bd29e",
  "object": "chat.completion",
  "created": 1789336685,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order A100 is **shipped**.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 375,
    "completion_tokens": 9,
    "total_tokens": 384,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 247
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder A100 is **shipped**.
turn 1 · 1239.4ms · 304 in / 40 out · asked for: check_order
budget {"limit_set": 4, "step_number": 1}
model live · 1239.3ms (model provider 1232.2 · library 7.1) · 304 in / 40 out · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length376
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.14.7
{
  "messages": [
    {
      "content": "Answer briefly.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "check_order",
        "description": "Check the status of an order by id.",
        "parameters": {
          "properties": {
            "order_id": {
              "type": "string"
            }
          },
          "required": [
            "order_id"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:58:06 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 43e1c8a07e2baf5ea799a95c6fa505ca.cloudfront.net (CloudFront)
x-amz-cf-idNEl0GE2vKNBHN4xtvy9kfZZIl2IVnptdqMGkgaWHVVLeInZy53JV5A==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id9120d1ba142b67af88a836d702299d11
{
  "id": "099aa12b-ab7d-4df6-85b3-10e79d03679d",
  "object": "chat.completion",
  "created": 1789336686,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_ET_AEWFj9Nkjt8cv78JvRmZ0309",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"A100\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 304,
    "completion_tokens": 40,
    "total_tokens": 344,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 176
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
turn 1 · 0.8ms
budget {"limit_set": 4, "step_number": 2}
tool check_order · 0.7ms · given: order_id=A100 · returned: order A100: shipped
args {"order_id": "A100"}
result {"value": "order A100: shipped"}
turn 2 · 952.7ms · 361 in / 9 out · responded with: Order A100 is **shipped**.
budget {"limit_set": 4, "step_number": 3}
model live · 952.7ms (model provider 938.6 · library 14.0) · 361 in / 9 out · responded with: Order A100 is **shipped**.
context sent — 4 message(s)
rolecontent
[0]systemAnswer briefly.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolorder A100: shipped
declared tools (1)
tooldescriptionschema
check_orderCheck the status of an order by id.{"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length664
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.14.7
{
  "messages": [
    {
      "content": "Answer briefly.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_AEWFj9Nkjt8cv78JvRmZ0309",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ]
    },
    {
      "content": "order A100: shipped",
      "role": "tool",
      "tool_call_id": "call_00_ET_AEWFj9Nkjt8cv78JvRmZ0309"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "check_order",
        "description": "Check the status of an order by id.",
        "parameters": {
          "properties": {
            "order_id": {
              "type": "string"
            }
          },
          "required": [
            "order_id"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:58:07 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 9079b3d6f14ce041c9c213a2fad4d5a4.cloudfront.net (CloudFront)
x-amz-cf-idVv_dt3o31vFCxZLy-QzGhb9sCybyli88yt_BiA5imBQfHFYG9POmEw==
x-amz-cf-popDEN53-P1
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idfff639a2467312d769b4dbb95105610f
{
  "id": "8f92f3b7-b67f-4f73-b905-8b9fba65267e",
  "object": "chat.completion",
  "created": 1789336687,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order A100 is **shipped**.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 361,
    "completion_tokens": 9,
    "total_tokens": 370,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 233
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder A100 is **shipped**.
nested_vs_isolated {"limit_set": 4, "nested_as_node_raised": false, "nested_steps_taken": 3, "invoked_separately_raised": false, "isolated_child_steps_taken": 3, "wrapper_final_message": "child finished"}