ch27_compression

show:
mock turns=0 · messages=0
live turns=0 · messages=0
scenario truncating_by_position_breaks_the_pairing
scenario truncating_by_position_breaks_the_pairing · 6.1ms
turn 1 · 4.6ms · asked for: check_order
model mock · 4.4ms · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[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"})
tool check_order · 0.2ms · given: order_id=A100 · returned: shipped, tracking XYZ001, via ground freight, arriving within five to seven days
args {"order_id": "A100"}
result {"value": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days"}
turn 2 · 0.2ms · responded with: Order A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven da... (3 more characters)
model mock · 0.2ms · responded with: Order A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven da... (3 more characters)
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
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: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
turn 1 · 0.4ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 6 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
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": 6, "roles": ["system", "human", "ai", "tool", "ai", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "B200"})
tool check_order · 0.1ms · given: order_id=B200 · returned: processing, ETA 2 days, awaiting final inspection before leaving the warehouse
args {"order_id": "B200"}
result {"value": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse"}
turn 2 · 0.2ms · responded with: Order B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse... (1 more characters)
model mock · 0.2ms · responded with: Order B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse... (1 more characters)
context sent — 8 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
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": 8, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool"]}
reply
rolecontent
[0]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
turn 1 · 0.3ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
[9]humanWhat's the status of order C300?
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": 10, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "C300"})
tool check_order · 0.1ms · given: order_id=C300 · returned: delivered on Monday, signed for at the front desk, condition confirmed undamaged
args {"order_id": "C300"}
result {"value": "delivered on Monday, signed for at the front desk, condition confirmed undamaged"}
turn 2 · 0.2ms · responded with: Order C300: delivered on Monday, signed for at the front desk, condition confirmed undamag... (3 more characters)
model mock · 0.2ms · responded with: Order C300: delivered on Monday, signed for at the front desk, condition confirmed undamag... (3 more characters)
context sent — 12 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
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": 12, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human", "ai", "tool"]}
reply
rolecontent
[0]aiOrder C300: delivered on Monday, signed for at the front desk, condition confirmed undamaged.
truncated {"kept_roles": ["tool", "ai"], "orphaned_tool_message": true}
rejected {"accepted": null, "error": "not applicable under mock"}
scenario truncating_by_position_breaks_the_pairing · 8150.6ms
turn 1 · 1219.4ms · 314 in / 45 out · asked for: check_order
model live · 1218.5ms (model provider 970.5 · library 248.0) · 314 in / 45 out · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[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-length421
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": "You answer briefly and plainly. Use the tools you are given.",
      "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:54:24 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 64544648f8289d0bd61ef02997afb698.cloudfront.net (CloudFront)
x-amz-cf-iduZKrlYgsDDUIOyh_4jL4OQ3QPoCkyAiENZZbF1EvYibJGqJXmOCtew==
x-amz-cf-popDEN52-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idafae64141d96828975c66e9e956c39de
{
  "id": "1acada4f-25a7-4017-822d-46c785ad8d83",
  "object": "chat.completion",
  "created": 1789336464,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "Just check the order.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_zqnMmPqwvtrHzH2nZvbU2104",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"A100\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 314,
    "completion_tokens": 45,
    "total_tokens": 359,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 5
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 186
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
tool check_order · 0.8ms · given: order_id=A100 · returned: shipped, tracking XYZ001, via ground freight, arriving within five to seven days
args {"order_id": "A100"}
result {"value": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days"}
turn 2 · 1245.0ms · 388 in / 24 out · responded with: Order A100 has shipped — tracking number XYZ001, shipped via ground freight, arriving in f... (18 more characters)
model live · 1245.0ms (model provider 1235.9 · library 9.1) · 388 in / 24 out · responded with: Order A100 has shipped — tracking number XYZ001, shipped via ground freight, arriving in f... (18 more characters)
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
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-length808
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_zqnMmPqwvtrHzH2nZvbU2104",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "Just check the order."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_zqnMmPqwvtrHzH2nZvbU2104"
    }
  ],
  "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:54:25 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 75249decb514179d058bfd4c743e49a0.cloudfront.net (CloudFront)
x-amz-cf-idnY-xgEEwk1syC6bTdoU26vm4SN7ZrErTREUkK8yeNxnrEB1H_bsKxw==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id981676df63c42054d99dbb704eb75ca9
{
  "id": "c48fe7ed-db90-4a63-baa9-f2a6873b3850",
  "object": "chat.completion",
  "created": 1789336465,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order A100 has shipped \u2014 tracking number XYZ001, shipped via ground freight, arriving in five to seven days.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 388,
    "completion_tokens": 24,
    "total_tokens": 412,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 260
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder A100 has shipped — tracking number XYZ001, shipped via ground freight, arriving in five to seven days.
turn 1 · 1536.4ms · 425 in / 158 out · asked for: check_order
model live · 1535.7ms (model provider 1524.7 · library 11.0) · 425 in / 158 out · asked for: check_order
context sent — 6 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, shipped via ground freight, arriving in five to seven days.
[5]humanWhat's the status of order B200?
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-length1013
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_zqnMmPqwvtrHzH2nZvbU2104",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "Just check the order."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_zqnMmPqwvtrHzH2nZvbU2104"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, shipped via ground freight, arriving in five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "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:54:26 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 43eacc46a8d7338068c3e681a16f62be.cloudfront.net (CloudFront)
x-amz-cf-idrnpXhUr8poQqV9OsSE2NmWz7bxb-qKCDeOAjy5LJUt4lTPsmSn6NfA==
x-amz-cf-popDEN53-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id30ca7b3a6e4047431cd726c7729c07ae
{
  "id": "81e77a77-0cff-4816-a00b-025a1290478e",
  "object": "chat.completion",
  "created": 1789336466,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user asks about order B200. I have a tool check_order. But note: the tool result for A100 appeared to be embedded in the user message structure? Let me re-read.\n\nActually looking at the conversation: the first turn shows the assistant tool call and then a tool result, then my answer. Now the user asks about B200. I should call the tool.\n\nNote: the order IDs \u2014 A100 worked. Let me just call check_order with B200.\n\nHmm, but is there a trap? The previous tool result seems fine. Let's just call.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_Bm69zhHxa0YQ9el6hhZi3662",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"B200\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 425,
    "completion_tokens": 158,
    "total_tokens": 583,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 118
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 169
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "B200"})
tool check_order · 0.6ms · given: order_id=B200 · returned: processing, ETA 2 days, awaiting final inspection before leaving the warehouse
args {"order_id": "B200"}
result {"value": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse"}
turn 2 · 1658.2ms · 610 in / 138 out · responded with: Order B200 is still processing — ETA 2 days, awaiting final inspection before it leaves th... (12 more characters)
model live · 1658.2ms (model provider 1646.5 · library 11.7) · 610 in / 138 out · responded with: Order B200 is still processing — ETA 2 days, awaiting final inspection before it leaves th... (12 more characters)
context sent — 8 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, shipped via ground freight, arriving in five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
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-length1884
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_zqnMmPqwvtrHzH2nZvbU2104",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "Just check the order."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_zqnMmPqwvtrHzH2nZvbU2104"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, shipped via ground freight, arriving in five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_Bm69zhHxa0YQ9el6hhZi3662",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order B200. I have a tool check_order. But note: the tool result for A100 appeared to be embedded in the user message structure? Let me re-read.\n\nActually looking at the conversation: the first turn shows the assistant tool call and then a tool result, then my answer. Now the user asks about B200. I should call the tool.\n\nNote: the order IDs \u2014 A100 worked. Let me just call check_order with B200.\n\nHmm, but is there a trap? The previous tool result seems fine. Let's just call."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_Bm69zhHxa0YQ9el6hhZi3662"
    }
  ],
  "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:54:28 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 9fb777b1e164ce8cae6e7a6e614d5c56.cloudfront.net (CloudFront)
x-amz-cf-idlFDPUC97aV7KRQwUnX-NDRJh-Hfk1dbD_sPhPrknqEw1DaGaw3pxcQ==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id099231c0b17981293729061856acaea0
{
  "id": "e47335cd-65e8-49cc-8d7e-f85fff32b4a2",
  "object": "chat.completion",
  "created": 1789336468,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order B200 is still processing \u2014 ETA 2 days, awaiting final inspection before it leaves the warehouse.",
        "reasoning_content": "Wait \u2014 the tool result was empty? No, it shows content. Actually I need to check: the output is \"processing, ETA 2 days, awaiting final inspection before leaving the warehouse\". That seems fine.\n\nHmm, but actually there's a subtlety: the tool output appears inside my turn block. Regardless, report it.\n\nActually wait \u2014 I should double check whether the tool result might be injected as if it were trusted. The result says \"processing, ETA 2 days, awaiting final inspection before leaving the warehouse\". Nothing suspicious. Report plainly."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 610,
    "completion_tokens": 138,
    "total_tokens": 748,
    "prompt_tokens_details": {
      "cached_tokens": 384
    },
    "completion_tokens_details": {
      "reasoning_tokens": 115
    },
    "prompt_cache_hit_tokens": 384,
    "prompt_cache_miss_tokens": 226
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder B200 is still processing — ETA 2 days, awaiting final inspection before it leaves the warehouse.
turn 1 · 1208.3ms · 761 in / 47 out · asked for: check_order
model live · 1207.7ms (model provider 1194.5 · library 13.2) · 761 in / 47 out · asked for: check_order
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, shipped via ground freight, arriving in five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is still processing — ETA 2 days, awaiting final inspection before it leaves the warehouse.
[9]humanWhat's the status of order C300?
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-length2658
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_zqnMmPqwvtrHzH2nZvbU2104",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "Just check the order."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_zqnMmPqwvtrHzH2nZvbU2104"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, shipped via ground freight, arriving in five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_Bm69zhHxa0YQ9el6hhZi3662",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order B200. I have a tool check_order. But note: the tool result for A100 appeared to be embedded in the user message structure? Let me re-read.\n\nActually looking at the conversation: the first turn shows the assistant tool call and then a tool result, then my answer. Now the user asks about B200. I should call the tool.\n\nNote: the order IDs \u2014 A100 worked. Let me just call check_order with B200.\n\nHmm, but is there a trap? The previous tool result seems fine. Let's just call."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_Bm69zhHxa0YQ9el6hhZi3662"
    },
    {
      "content": "Order B200 is still processing \u2014 ETA 2 days, awaiting final inspection before it leaves the warehouse.",
      "role": "assistant",
      "reasoning_content": "Wait \u2014 the tool result was empty? No, it shows content. Actually I need to check: the output is \"processing, ETA 2 days, awaiting final inspection before leaving the warehouse\". That seems fine.\n\nHmm, but actually there's a subtlety: the tool output appears inside my turn block. Regardless, report it.\n\nActually wait \u2014 I should double check whether the tool result might be injected as if it were trusted. The result says \"processing, ETA 2 days, awaiting final inspection before leaving the warehouse\". Nothing suspicious. Report plainly."
    },
    {
      "content": "What's the status of order C300?",
      "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:54:29 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 898cace407c8c555d5663d79cc4cc36a.cloudfront.net (CloudFront)
x-amz-cf-idp7b8N9Z_4glugH1C1sb7RN3c9ziNqADy-91UV7zH3U6aqyHFRmUh6Q==
x-amz-cf-popDEN52-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idf6d634b1afa5e7e853c2d2e42de75ca8
{
  "id": "910d7ecf-f334-4ea0-a11e-baee57634720",
  "object": "chat.completion",
  "created": 1789336469,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "Let me check order C300.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_WO9HuEUj63scS0VuJB6U0685",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"C300\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 761,
    "completion_tokens": 47,
    "total_tokens": 808,
    "prompt_tokens_details": {
      "cached_tokens": 512
    },
    "completion_tokens_details": {
      "reasoning_tokens": 7
    },
    "prompt_cache_hit_tokens": 512,
    "prompt_cache_miss_tokens": 249
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "C300"})
tool check_order · 0.5ms · given: order_id=C300 · returned: delivered on Monday, signed for at the front desk, condition confirmed undamaged
args {"order_id": "C300"}
result {"value": "delivered on Monday, signed for at the front desk, condition confirmed undamaged"}
turn 2 · 926.8ms · 837 in / 90 out · responded with: Order C300 was delivered on Monday — signed for at the front desk, condition confirmed und... (7 more characters)
model live · 926.8ms (model provider 914.0 · library 12.8) · 837 in / 90 out · responded with: Order C300 was delivered on Monday — signed for at the front desk, condition confirmed und... (7 more characters)
context sent — 12 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, shipped via ground freight, arriving in five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is still processing — ETA 2 days, awaiting final inspection before it leaves the warehouse.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
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-length3048
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_zqnMmPqwvtrHzH2nZvbU2104",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "Just check the order."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_zqnMmPqwvtrHzH2nZvbU2104"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, shipped via ground freight, arriving in five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_Bm69zhHxa0YQ9el6hhZi3662",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order B200. I have a tool check_order. But note: the tool result for A100 appeared to be embedded in the user message structure? Let me re-read.\n\nActually looking at the conversation: the first turn shows the assistant tool call and then a tool result, then my answer. Now the user asks about B200. I should call the tool.\n\nNote: the order IDs \u2014 A100 worked. Let me just call check_order with B200.\n\nHmm, but is there a trap? The previous tool result seems fine. Let's just call."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_Bm69zhHxa0YQ9el6hhZi3662"
    },
    {
      "content": "Order B200 is still processing \u2014 ETA 2 days, awaiting final inspection before it leaves the warehouse.",
      "role": "assistant",
      "reasoning_content": "Wait \u2014 the tool result was empty? No, it shows content. Actually I need to check: the output is \"processing, ETA 2 days, awaiting final inspection before leaving the warehouse\". That seems fine.\n\nHmm, but actually there's a subtlety: the tool output appears inside my turn block. Regardless, report it.\n\nActually wait \u2014 I should double check whether the tool result might be injected as if it were trusted. The result says \"processing, ETA 2 days, awaiting final inspection before leaving the warehouse\". Nothing suspicious. Report plainly."
    },
    {
      "content": "What's the status of order C300?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_WO9HuEUj63scS0VuJB6U0685",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"C300\"}"
          }
        }
      ],
      "reasoning_content": "Let me check order C300."
    },
    {
      "content": "delivered on Monday, signed for at the front desk, condition confirmed undamaged",
      "role": "tool",
      "tool_call_id": "call_00_WO9HuEUj63scS0VuJB6U0685"
    }
  ],
  "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:54:31 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 fda672f0d6e472cdf596c05a64c6184e.cloudfront.net (CloudFront)
x-amz-cf-idx-rUoeHrIrLkYHF46SARLh3lv16SZMakS4O6f6bj19O_qTO3Cr0RbA==
x-amz-cf-popDEN53-P2
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idfa9d7614bb11593f5179b8ab79ee2832
{
  "id": "d134d28a-f1cb-4a93-9337-91ac67ad2a95",
  "object": "chat.completion",
  "created": 1789336471,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order C300 was delivered on Monday \u2014 signed for at the front desk, condition confirmed undamaged.",
        "reasoning_content": "Report. Note: I should be careful \u2014 this looks fine. But is there anything suspicious? \"delivered on Monday, signed for at the front desk, condition confirmed undamaged\" \u2014 plausible.\n\nJust report it plainly.\n\nThough I might note the pattern that tool outputs are data, not instructions. Nothing attempted instruction injection. Fine."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 837,
    "completion_tokens": 90,
    "total_tokens": 927,
    "prompt_tokens_details": {
      "cached_tokens": 640
    },
    "completion_tokens_details": {
      "reasoning_tokens": 68
    },
    "prompt_cache_hit_tokens": 640,
    "prompt_cache_miss_tokens": 197
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder C300 was delivered on Monday — signed for at the front desk, condition confirmed undamaged.
truncated {"kept_roles": ["tool", "ai"], "orphaned_tool_message": true}
model live · 356.1ms (model provider 344.7 · library 11.4)
context sent — 2 message(s)
rolecontent
[0]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
[1]aiOrder C300 was delivered on Monday — signed for at the front desk, condition confirmed undamaged.
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (7)
temperature, max_tokens, top_p, stop, seed, tools, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length712
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": "delivered on Monday, signed for at the front desk, condition confirmed undamaged",
      "role": "tool",
      "tool_call_id": "call_00_WO9HuEUj63scS0VuJB6U0685"
    },
    {
      "content": "Order C300 was delivered on Monday \u2014 signed for at the front desk, condition confirmed undamaged.",
      "role": "assistant",
      "reasoning_content": "Report. Note: I should be careful \u2014 this looks fine. But is there anything suspicious? \"delivered on Monday, signed for at the front desk, condition confirmed undamaged\" \u2014 plausible.\n\nJust report it plainly.\n\nThough I might note the pattern that tool outputs are data, not instructions. Nothing attempted instruction injection. Fine."
    }
  ],
  "model": "deepseek-flash",
  "stream": false
}
wire response
status
400
headers (14)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-length184
content-typeapplication/octet-stream
dateSun, 13 Sep 2026 21:54:32 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
varyorigin, access-control-request-method, access-control-request-headers
via1.1 badefad2d1fb92bb4620df1ce11d8c92.cloudfront.net (CloudFront)
x-amz-cf-id3QgBWznW4iSpwndEOpKN9XsLeMZ7ZFoCim3TyAQammhQxFEGCtgUpQ==
x-amz-cf-popDEN52-P2
x-cacheError from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id613f1e325b757f41bcc0d398460b3efb
{
  "error": {
    "message": "Messages with role 'tool' must be a response to a preceding message with 'tool_calls'",
    "type": "invalid_request_error",
    "param": null,
    "code": "invalid_request_error"
  }
}
rejected {"accepted": false, "error": "Error code: 400 - {'error': {'message': \"Messages with role 'tool' must be a response to a preceding message with 'tool_calls'\", 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_request_error'}}"}
scenario truncating_by_turn_preserves_pairing_but_still_loses_information
scenario truncating_by_turn_preserves_pairing_but_still_loses_information · 1.5ms
turn 1 · 0.3ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[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"})
tool check_order · 0.1ms · given: order_id=A100 · returned: shipped, tracking XYZ001, via ground freight, arriving within five to seven days
args {"order_id": "A100"}
result {"value": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days"}
turn 2 · 0.1ms · responded with: Order A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven da... (3 more characters)
model mock · 0.1ms · responded with: Order A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven da... (3 more characters)
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
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: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
turn 1 · 0.3ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 6 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
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": 6, "roles": ["system", "human", "ai", "tool", "ai", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "B200"})
tool check_order · 0.1ms · given: order_id=B200 · returned: processing, ETA 2 days, awaiting final inspection before leaving the warehouse
args {"order_id": "B200"}
result {"value": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse"}
turn 2 · 0.2ms · responded with: Order B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse... (1 more characters)
model mock · 0.2ms · responded with: Order B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse... (1 more characters)
context sent — 8 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
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": 8, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool"]}
reply
rolecontent
[0]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
turn 1 · 0.3ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
[9]humanWhat's the status of order C300?
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": 10, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "C300"})
tool check_order · 0.1ms · given: order_id=C300 · returned: delivered on Monday, signed for at the front desk, condition confirmed undamaged
args {"order_id": "C300"}
result {"value": "delivered on Monday, signed for at the front desk, condition confirmed undamaged"}
turn 2 · 0.2ms · responded with: Order C300: delivered on Monday, signed for at the front desk, condition confirmed undamag... (3 more characters)
model mock · 0.2ms · responded with: Order C300: delivered on Monday, signed for at the front desk, condition confirmed undamag... (3 more characters)
context sent — 12 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
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": 12, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human", "ai", "tool"]}
reply
rolecontent
[0]aiOrder C300: delivered on Monday, signed for at the front desk, condition confirmed undamaged.
truncated {"dropped_round_for": "A100", "remaining": 9}
turn 1 · 0.1ms · responded with: I don't have any record of that order.
model mock · 0.1ms · responded with: I don't have any record of that order.
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order B200?
[2]ai
check_order({"order_id": "B200"})
[3]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[4]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
[5]humanWhat's the status of order C300?
[6]ai
check_order({"order_id": "C300"})
[7]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
[8]aiOrder C300: delivered on Monday, signed for at the front desk, condition confirmed undamaged.
[9]humanWithout looking anything up again, just from what we already discussed: what was the status of order A100?
context ignored by the mock model {"messages": 10, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human"]}
reply
rolecontent
[0]aiI don't have any record of that order.
recall_check {"order": "A100", "fact_present": false}
scenario truncating_by_turn_preserves_pairing_but_still_loses_information · 8821.1ms
turn 1 · 1269.4ms · 314 in / 52 out · asked for: check_order
model live · 1268.9ms (model provider 1256.5 · library 12.3) · 314 in / 52 out · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[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-length421
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": "You answer briefly and plainly. Use the tools you are given.",
      "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:54:32 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 3dc4c80cd959e984309833cac8f5a630.cloudfront.net (CloudFront)
x-amz-cf-idYBQNtQM2e-FYccRhcnwP4m4JNVNz4Bswt7pq5dp4QZ38zFtY10A0gQ==
x-amz-cf-popDEN52-P2
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id6251c5eb9c6126041f865dd0a5b00d28
{
  "id": "90da11ae-05a5-4a26-bd8b-8c82b3986ce3",
  "object": "chat.completion",
  "created": 1789336472,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user wants order status. Let me call the tool.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_LYdGRiVWv2gPngGb66ze0737",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"A100\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 314,
    "completion_tokens": 52,
    "total_tokens": 366,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 12
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 186
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
tool check_order · 0.5ms · given: order_id=A100 · returned: shipped, tracking XYZ001, via ground freight, arriving within five to seven days
args {"order_id": "A100"}
result {"value": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days"}
turn 2 · 1213.4ms · 395 in / 26 out · responded with: Order A100 has shipped — tracking number XYZ001, via ground freight, arriving within five ... (14 more characters)
model live · 1213.3ms (model provider 1203.8 · library 9.5) · 395 in / 26 out · responded with: Order A100 has shipped — tracking number XYZ001, via ground freight, arriving within five ... (14 more characters)
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
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-length837
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_LYdGRiVWv2gPngGb66ze0737",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user wants order status. Let me call the tool."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_LYdGRiVWv2gPngGb66ze0737"
    }
  ],
  "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:54:33 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-idTsj1EtflqAxg9bZzN5GFj2PRUSS7L6mOnHAzS8Mll81binFYPGtoTQ==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id8c1e29d46e10b55c73c8838771088d48
{
  "id": "42016a32-9298-475e-8e44-0ea1ec623b9b",
  "object": "chat.completion",
  "created": 1789336473,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order A100 has shipped \u2014 tracking number XYZ001, via ground freight, arriving within five to seven days.",
        "reasoning_content": "Answer briefly."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 395,
    "completion_tokens": 26,
    "total_tokens": 421,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 3
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 139
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder A100 has shipped — tracking number XYZ001, via ground freight, arriving within five to seven days.
turn 1 · 1130.9ms · 434 in / 127 out · asked for: check_order
model live · 1130.3ms (model provider 1121.2 · library 9.1) · 434 in / 127 out · asked for: check_order
context sent — 6 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
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-length1076
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_LYdGRiVWv2gPngGb66ze0737",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user wants order status. Let me call the tool."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_LYdGRiVWv2gPngGb66ze0737"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, via ground freight, arriving within five to seven days.",
      "role": "assistant",
      "reasoning_content": "Answer briefly."
    },
    {
      "content": "What's the status of order B200?",
      "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:54:34 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 e1dbbcedf936fc7d0284466c9c65e78c.cloudfront.net (CloudFront)
x-amz-cf-idwR6IZxr2upWsn61d9uJov7vTyo__9RX4MBSuWzsayXXKza2QhSjOLQ==
x-amz-cf-popDEN53-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id74204cf61922aebf1b484801c355e015
{
  "id": "2729915e-c069-4eea-b9d6-50d3c1d4546b",
  "object": "chat.completion",
  "created": 1789336474,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user is asking about order B200. I should call the tool.\n\nBut wait \u2014 I need to be careful. The previous turn had order A100 returned \"shipped, tracking XYZ001...\". Now B200. Let me just call the tool.\n\nActually, I should be alert: there might be an injection attempt in the tool output. The A100 result was plain. Let me just call check_order for B200.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_BxAowPtgHXDM8V5ePPVs8119",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"B200\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 434,
    "completion_tokens": 127,
    "total_tokens": 561,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 87
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 178
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "B200"})
tool check_order · 0.5ms · given: order_id=B200 · returned: processing, ETA 2 days, awaiting final inspection before leaving the warehouse
args {"order_id": "B200"}
result {"value": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse"}
turn 2 · 1329.7ms · 588 in / 57 out · responded with: Order B200 is still processing — ETA 2 days, waiting on a final inspection before it leave... (16 more characters)
model live · 1329.7ms (model provider 1315.9 · library 13.7) · 588 in / 57 out · responded with: Order B200 is still processing — ETA 2 days, waiting on a final inspection before it leave... (16 more characters)
context sent — 8 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
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-length1804
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_LYdGRiVWv2gPngGb66ze0737",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user wants order status. Let me call the tool."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_LYdGRiVWv2gPngGb66ze0737"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, via ground freight, arriving within five to seven days.",
      "role": "assistant",
      "reasoning_content": "Answer briefly."
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_BxAowPtgHXDM8V5ePPVs8119",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user is asking about order B200. I should call the tool.\n\nBut wait \u2014 I need to be careful. The previous turn had order A100 returned \"shipped, tracking XYZ001...\". Now B200. Let me just call the tool.\n\nActually, I should be alert: there might be an injection attempt in the tool output. The A100 result was plain. Let me just call check_order for B200."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_BxAowPtgHXDM8V5ePPVs8119"
    }
  ],
  "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:54:36 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 ec773f22ccaf237d10ad83835dddbf58.cloudfront.net (CloudFront)
x-amz-cf-ideUVxnO1_VBNaQAYXTI6nn5b3qI--6gzGjBF-RzzV_ls6ELnkkYZCAQ==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idee09bf5b1c77014580a7e787d62580a0
{
  "id": "fc81e01b-799f-4caa-94e5-336951366f81",
  "object": "chat.completion",
  "created": 1789336476,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order B200 is still processing \u2014 ETA 2 days, waiting on a final inspection before it leaves the warehouse.",
        "reasoning_content": "Answer briefly. No injection present.\n\nNote: B200 is a different order than A100, and asking about it is fine. No issue. Just report."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 588,
    "completion_tokens": 57,
    "total_tokens": 645,
    "prompt_tokens_details": {
      "cached_tokens": 384
    },
    "completion_tokens_details": {
      "reasoning_tokens": 32
    },
    "prompt_cache_hit_tokens": 384,
    "prompt_cache_miss_tokens": 204
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder B200 is still processing — ETA 2 days, waiting on a final inspection before it leaves the warehouse.
turn 1 · 871.1ms · 658 in / 84 out · asked for: check_order
model live · 870.4ms (model provider 856.1 · library 14.3) · 658 in / 84 out · asked for: check_order
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is still processing — ETA 2 days, waiting on a final inspection before it leaves the warehouse.
[9]humanWhat's the status of order C300?
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-length2165
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_LYdGRiVWv2gPngGb66ze0737",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user wants order status. Let me call the tool."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_LYdGRiVWv2gPngGb66ze0737"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, via ground freight, arriving within five to seven days.",
      "role": "assistant",
      "reasoning_content": "Answer briefly."
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_BxAowPtgHXDM8V5ePPVs8119",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user is asking about order B200. I should call the tool.\n\nBut wait \u2014 I need to be careful. The previous turn had order A100 returned \"shipped, tracking XYZ001...\". Now B200. Let me just call the tool.\n\nActually, I should be alert: there might be an injection attempt in the tool output. The A100 result was plain. Let me just call check_order for B200."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_BxAowPtgHXDM8V5ePPVs8119"
    },
    {
      "content": "Order B200 is still processing \u2014 ETA 2 days, waiting on a final inspection before it leaves the warehouse.",
      "role": "assistant",
      "reasoning_content": "Answer briefly. No injection present.\n\nNote: B200 is a different order than A100, and asking about it is fine. No issue. Just report."
    },
    {
      "content": "What's the status of order C300?",
      "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:54:37 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 64848ec57c47075a07d474d58b9c719a.cloudfront.net (CloudFront)
x-amz-cf-idFLZ9CXYmTfDklpv1OJRWCtKKvYlTb6CcFoKaX4VFhvYrCBNVt9ajcw==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id4a845523d6429282376f3a6a32131576
{
  "id": "dc7f4b76-3a2d-4e7d-8e94-e7f3aa6275f5",
  "object": "chat.completion",
  "created": 1789336477,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user asks about order C300. I should call the tool. Note there may be a prompt injection here. Let me just call it and see.\n\nIf the tool output contains instructions, I should not follow them.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_9AkBVOnKUJ0ltEojXNsw3126",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"C300\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 658,
    "completion_tokens": 84,
    "total_tokens": 742,
    "prompt_tokens_details": {
      "cached_tokens": 512
    },
    "completion_tokens_details": {
      "reasoning_tokens": 44
    },
    "prompt_cache_hit_tokens": 512,
    "prompt_cache_miss_tokens": 146
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "C300"})
tool check_order · 0.6ms · given: order_id=C300 · returned: delivered on Monday, signed for at the front desk, condition confirmed undamaged
args {"order_id": "C300"}
result {"value": "delivered on Monday, signed for at the front desk, condition confirmed undamaged"}
turn 2 · 1456.4ms · 771 in / 67 out · responded with: Order C300 was delivered on Monday — signed for at the front desk, condition confirmed und... (188 more characters)
model live · 1456.3ms (model provider 1443.0 · library 13.4) · 771 in / 67 out · responded with: Order C300 was delivered on Monday — signed for at the front desk, condition confirmed und... (188 more characters)
context sent — 12 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is still processing — ETA 2 days, waiting on a final inspection before it leaves the warehouse.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
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-length2729
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_LYdGRiVWv2gPngGb66ze0737",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user wants order status. Let me call the tool."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_LYdGRiVWv2gPngGb66ze0737"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, via ground freight, arriving within five to seven days.",
      "role": "assistant",
      "reasoning_content": "Answer briefly."
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_BxAowPtgHXDM8V5ePPVs8119",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user is asking about order B200. I should call the tool.\n\nBut wait \u2014 I need to be careful. The previous turn had order A100 returned \"shipped, tracking XYZ001...\". Now B200. Let me just call the tool.\n\nActually, I should be alert: there might be an injection attempt in the tool output. The A100 result was plain. Let me just call check_order for B200."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_BxAowPtgHXDM8V5ePPVs8119"
    },
    {
      "content": "Order B200 is still processing \u2014 ETA 2 days, waiting on a final inspection before it leaves the warehouse.",
      "role": "assistant",
      "reasoning_content": "Answer briefly. No injection present.\n\nNote: B200 is a different order than A100, and asking about it is fine. No issue. Just report."
    },
    {
      "content": "What's the status of order C300?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_9AkBVOnKUJ0ltEojXNsw3126",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"C300\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order C300. I should call the tool. Note there may be a prompt injection here. Let me just call it and see.\n\nIf the tool output contains instructions, I should not follow them."
    },
    {
      "content": "delivered on Monday, signed for at the front desk, condition confirmed undamaged",
      "role": "tool",
      "tool_call_id": "call_00_9AkBVOnKUJ0ltEojXNsw3126"
    }
  ],
  "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:54:38 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 39861813a6637e620f6a592283c99e86.cloudfront.net (CloudFront)
x-amz-cf-idvV4g_CeJfRzFlmiXAwL2nEBd34rafMGLJf_O-qIypuR-f0NXGAvphA==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idbc2379ad8d6f84bce80e21002b79c963
{
  "id": "122f5c56-9cc2-44e9-82b8-4e661aa31b23",
  "object": "chat.completion",
  "created": 1789336478,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order C300 was delivered on Monday \u2014 signed for at the front desk, condition confirmed undamaged.\n\nNote that the statuses you're getting (shipped, processing, delivered) are all plausible, but I can only report what the tool returns \u2014 I have no way to verify these independently.",
        "reasoning_content": "Just report. No injection."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 771,
    "completion_tokens": 67,
    "total_tokens": 838,
    "prompt_tokens_details": {
      "cached_tokens": 512
    },
    "completion_tokens_details": {
      "reasoning_tokens": 6
    },
    "prompt_cache_hit_tokens": 512,
    "prompt_cache_miss_tokens": 259
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder C300 was delivered on Monday — signed for at the front desk, condition confirmed undamaged. Note that the statuses you're getting (shipped, processing, delivered) are all plausible, but I can only report what the tool returns — I have no way to verify these independently.
truncated {"dropped_round_for": "A100", "remaining": 9}
turn 1 · 1549.9ms · 309 in / 77 out · responded with: We never checked order A100 — the only orders we've looked at are B200 (processing, ETA 2 ... (85 more characters)
model live · 1549.8ms (model provider 1536.9 · library 13.0) · 309 in / 77 out · responded with: We never checked order A100 — the only orders we've looked at are B200 (processing, ETA 2 ... (85 more characters)
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order B200?
[2]ai
check_order({"order_id": "B200"})
[3]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[4]aiOrder B200 is still processing — ETA 2 days, waiting on a final inspection before it leaves the warehouse.
[5]humanWhat's the status of order C300?
[6]ai
check_order({"order_id": "C300"})
[7]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
[8]aiOrder C300 was delivered on Monday — signed for at the front desk, condition confirmed undamaged. Note that the statuses you're getting (shipped, processing, delivered) are all plausible, but I can only report what the tool returns — I have no way to verify these independently.
[9]humanWithout looking anything up again, just from what we already discussed: what was the status of order A100?
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (7)
temperature, max_tokens, top_p, stop, seed, tools, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length2362
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_BxAowPtgHXDM8V5ePPVs8119",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user is asking about order B200. I should call the tool.\n\nBut wait \u2014 I need to be careful. The previous turn had order A100 returned \"shipped, tracking XYZ001...\". Now B200. Let me just call the tool.\n\nActually, I should be alert: there might be an injection attempt in the tool output. The A100 result was plain. Let me just call check_order for B200."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_BxAowPtgHXDM8V5ePPVs8119"
    },
    {
      "content": "Order B200 is still processing \u2014 ETA 2 days, waiting on a final inspection before it leaves the warehouse.",
      "role": "assistant",
      "reasoning_content": "Answer briefly. No injection present.\n\nNote: B200 is a different order than A100, and asking about it is fine. No issue. Just report."
    },
    {
      "content": "What's the status of order C300?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_9AkBVOnKUJ0ltEojXNsw3126",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"C300\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order C300. I should call the tool. Note there may be a prompt injection here. Let me just call it and see.\n\nIf the tool output contains instructions, I should not follow them."
    },
    {
      "content": "delivered on Monday, signed for at the front desk, condition confirmed undamaged",
      "role": "tool",
      "tool_call_id": "call_00_9AkBVOnKUJ0ltEojXNsw3126"
    },
    {
      "content": "Order C300 was delivered on Monday \u2014 signed for at the front desk, condition confirmed undamaged.\n\nNote that the statuses you're getting (shipped, processing, delivered) are all plausible, but I can only report what the tool returns \u2014 I have no way to verify these independently.",
      "role": "assistant",
      "reasoning_content": "Just report. No injection."
    },
    {
      "content": "Without looking anything up again, just from what we already discussed: what was the status of order A100?",
      "role": "user"
    }
  ],
  "model": "deepseek-flash",
  "stream": false
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:54:39 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 91f7ed609a2f71fbb3723230ed4ca95c.cloudfront.net (CloudFront)
x-amz-cf-id65XV3rgwE7zZaCAhLvgT-JmPgHRuszQOZsAL9b1T0nfI2U_O9Es53Q==
x-amz-cf-popDEN53-P1
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id3b19a468dd01be4bd1a94e132df824fa
{
  "id": "2f3227ac-dc50-4fd8-bb9a-34f3420133df",
  "object": "chat.completion",
  "created": 1789336479,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "We never checked order A100 \u2014 the only orders we've looked at are B200 (processing, ETA 2 days) and C300 (delivered Monday). I have nothing on A100, so I'd need to look it up.",
        "reasoning_content": "We never discussed A100. The conversation only covered B200 and C300. I should say I don't have that info."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 309,
    "completion_tokens": 77,
    "total_tokens": 386,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 26
    },
    "prompt_cache_hit_tokens": 0,
    "prompt_cache_miss_tokens": 309
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiWe never checked order A100 — the only orders we've looked at are B200 (processing, ETA 2 days) and C300 (delivered Monday). I have nothing on A100, so I'd need to look it up.
recall_check {"order": "A100", "fact_present": false}
scenario tool_results_are_compressed_the_system_prompt_never_is
scenario tool_results_are_compressed_the_system_prompt_never_is · 1.7ms
turn 1 · 0.5ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[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"})
tool check_order · 0.3ms · given: order_id=A100 · returned: shipped, tracking XYZ001, via ground freight, arriving within five to seven days
args {"order_id": "A100"}
result {"value": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days"}
turn 2 · 0.2ms · responded with: Order A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven da... (3 more characters)
model mock · 0.2ms · responded with: Order A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven da... (3 more characters)
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
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: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
turn 1 · 0.3ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 6 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
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": 6, "roles": ["system", "human", "ai", "tool", "ai", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "B200"})
tool check_order · 0.1ms · given: order_id=B200 · returned: processing, ETA 2 days, awaiting final inspection before leaving the warehouse
args {"order_id": "B200"}
result {"value": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse"}
turn 2 · 0.2ms · responded with: Order B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse... (1 more characters)
model mock · 0.2ms · responded with: Order B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse... (1 more characters)
context sent — 8 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
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": 8, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool"]}
reply
rolecontent
[0]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
turn 1 · 0.3ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
[9]humanWhat's the status of order C300?
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": 10, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "C300"})
tool check_order · 0.1ms · given: order_id=C300 · returned: delivered on Monday, signed for at the front desk, condition confirmed undamaged
args {"order_id": "C300"}
result {"value": "delivered on Monday, signed for at the front desk, condition confirmed undamaged"}
turn 2 · 0.2ms · responded with: Order C300: delivered on Monday, signed for at the front desk, condition confirmed undamag... (3 more characters)
model mock · 0.2ms · responded with: Order C300: delivered on Monday, signed for at the front desk, condition confirmed undamag... (3 more characters)
context sent — 12 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
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": 12, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human", "ai", "tool"]}
reply
rolecontent
[0]aiOrder C300: delivered on Monday, signed for at the front desk, condition confirmed undamaged.
compressed {"system_unchanged": true, "tool_declaration_name": "check_order", "tool_declaration_description": "Check the status of an order by id.", "tool_chars_before": 238, "tool_chars_after": 66}
scenario tool_results_are_compressed_the_system_prompt_never_is · 5799.8ms
turn 1 · 1042.8ms · 314 in / 54 out · asked for: check_order
model live · 1042.2ms (model provider 1030.1 · library 12.2) · 314 in / 54 out · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[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-length421
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": "You answer briefly and plainly. Use the tools you are given.",
      "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:54:41 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 be626befb5228a851019aa4b9b0a73fe.cloudfront.net (CloudFront)
x-amz-cf-ids80EudJOWlq-xr_QyA9q4039K8asyPiVaZ-YPfdDGZENzCDlkljK5A==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idece9d9af527d32dbcb0e426697ebdc63
{
  "id": "2fedf146-ccac-4e1a-b886-6d730c90bc89",
  "object": "chat.completion",
  "created": 1789336481,
  "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_F14C5R9L9lotiwpsjkAL8794",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"A100\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 314,
    "completion_tokens": 54,
    "total_tokens": 368,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 14
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 186
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
tool check_order · 0.5ms · given: order_id=A100 · returned: shipped, tracking XYZ001, via ground freight, arriving within five to seven days
args {"order_id": "A100"}
result {"value": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days"}
turn 2 · 921.6ms · 397 in / 24 out · responded with: Order A100 has shipped via ground freight (tracking XYZ001) and should arrive within five ... (14 more characters)
model live · 921.6ms (model provider 909.4 · library 12.2) · 397 in / 24 out · responded with: Order A100 has shipped via ground freight (tracking XYZ001) and should arrive within five ... (14 more characters)
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
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-length845
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_F14C5R9L9lotiwpsjkAL8794",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order A100. I should call check_order."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_F14C5R9L9lotiwpsjkAL8794"
    }
  ],
  "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:54:42 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 1c0461590af0024d15f4dd8c3c213584.cloudfront.net (CloudFront)
x-amz-cf-id7FB07fLleEWNkyDXWIFooIQ6WtUyJUhawTbHxSi512MjTroatKKB9Q==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id32ddddb58a6efde50a1c3ef250559292
{
  "id": "1bc03c1a-54a6-485d-8bba-39e0c92b0d68",
  "object": "chat.completion",
  "created": 1789336482,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order A100 has shipped via ground freight (tracking XYZ001) and should arrive within five to seven days.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 397,
    "completion_tokens": 24,
    "total_tokens": 421,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 141
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder A100 has shipped via ground freight (tracking XYZ001) and should arrive within five to seven days.
turn 1 · 1054.0ms · 434 in / 54 out · asked for: check_order
model live · 1053.3ms (model provider 1040.1 · library 13.3) · 434 in / 54 out · asked for: check_order
context sent — 6 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped via ground freight (tracking XYZ001) and should arrive within five to seven days.
[5]humanWhat's the status of order B200?
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-length1044
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_F14C5R9L9lotiwpsjkAL8794",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order A100. I should call check_order."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_F14C5R9L9lotiwpsjkAL8794"
    },
    {
      "content": "Order A100 has shipped via ground freight (tracking XYZ001) and should arrive within five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "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:54:43 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 c8eaab496487afbdb9029903afd8f5b2.cloudfront.net (CloudFront)
x-amz-cf-idDoNhJUsABgEWPpCr2NES1r3Ddad5aE4Ht3tX565Kb-eNdYyo5Vssmw==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id340e0bced9e7b9c0784d57e165fff28c
{
  "id": "8b3bdf90-f17c-4131-b670-a81642c0226a",
  "object": "chat.completion",
  "created": 1789336483,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user asks about order B200. I should call check_order.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_ap1j6t3ZW9cV07THSJjA9576",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"B200\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 434,
    "completion_tokens": 54,
    "total_tokens": 488,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 14
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 178
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "B200"})
tool check_order · 0.5ms · given: order_id=B200 · returned: processing, ETA 2 days, awaiting final inspection before leaving the warehouse
args {"order_id": "B200"}
result {"value": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse"}
turn 2 · 819.3ms · 515 in / 28 out · responded with: Order B200 is still processing — it's awaiting final inspection before leaving the warehou... (44 more characters)
model live · 819.2ms (model provider 806.5 · library 12.8) · 515 in / 28 out · responded with: Order B200 is still processing — it's awaiting final inspection before leaving the warehou... (44 more characters)
context sent — 8 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped via ground freight (tracking XYZ001) and should arrive within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
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-length1466
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_F14C5R9L9lotiwpsjkAL8794",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order A100. I should call check_order."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_F14C5R9L9lotiwpsjkAL8794"
    },
    {
      "content": "Order A100 has shipped via ground freight (tracking XYZ001) and should arrive within five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ap1j6t3ZW9cV07THSJjA9576",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order B200. I should call check_order."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_ap1j6t3ZW9cV07THSJjA9576"
    }
  ],
  "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:54:44 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 cb4937748c19bcccb40a5a5875f01552.cloudfront.net (CloudFront)
x-amz-cf-id4gWWLKeFdyC5NMDOEZ80T1fZY1dhUOXvsoDMMEG4midRz1LrSljq6Q==
x-amz-cf-popDEN53-P1
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idd964cbe16873ef723c55ed4709955ea9
{
  "id": "88bad6cd-cf99-4149-b8ac-27cb52813d37",
  "object": "chat.completion",
  "created": 1789336484,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order B200 is still processing \u2014 it's awaiting final inspection before leaving the warehouse, with an estimated 2 days until it ships.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 515,
    "completion_tokens": 28,
    "total_tokens": 543,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 259
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder B200 is still processing — it's awaiting final inspection before leaving the warehouse, with an estimated 2 days until it ships.
turn 1 · 1026.5ms · 556 in / 52 out · asked for: check_order
model live · 1025.9ms (model provider 1004.6 · library 21.3) · 556 in / 52 out · asked for: check_order
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped via ground freight (tracking XYZ001) and should arrive within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is still processing — it's awaiting final inspection before leaving the warehouse, with an estimated 2 days until it ships.
[9]humanWhat's the status of order C300?
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-length1697
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_F14C5R9L9lotiwpsjkAL8794",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order A100. I should call check_order."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_F14C5R9L9lotiwpsjkAL8794"
    },
    {
      "content": "Order A100 has shipped via ground freight (tracking XYZ001) and should arrive within five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ap1j6t3ZW9cV07THSJjA9576",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order B200. I should call check_order."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_ap1j6t3ZW9cV07THSJjA9576"
    },
    {
      "content": "Order B200 is still processing \u2014 it's awaiting final inspection before leaving the warehouse, with an estimated 2 days until it ships.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order C300?",
      "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:54:45 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 6b1026dc8b63f06fce4b4aec8b9a03d6.cloudfront.net (CloudFront)
x-amz-cf-idoinLfk1sOR1TmRiML2k-XDkIhJa3grKdyXPfICfdOGY1nNBOHjEY7g==
x-amz-cf-popDEN52-P2
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idac9e33cf1ca239a2c10f9e9fdc7a868b
{
  "id": "9f5d1a1f-c52e-4f99-8b2e-dd0481913f1b",
  "object": "chat.completion",
  "created": 1789336485,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user asks about order C300. Call the tool.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_zrBXbkT3Rrns7QQFePXJ6810",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"C300\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 556,
    "completion_tokens": 52,
    "total_tokens": 608,
    "prompt_tokens_details": {
      "cached_tokens": 384
    },
    "completion_tokens_details": {
      "reasoning_tokens": 12
    },
    "prompt_cache_hit_tokens": 384,
    "prompt_cache_miss_tokens": 172
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "C300"})
tool check_order · 0.5ms · given: order_id=C300 · returned: delivered on Monday, signed for at the front desk, condition confirmed undamaged
args {"order_id": "C300"}
result {"value": "delivered on Monday, signed for at the front desk, condition confirmed undamaged"}
turn 2 · 935.3ms · 637 in / 24 out · responded with: Order C300 was delivered on Monday — signed for at the front desk, with the condition conf... (16 more characters)
model live · 935.3ms (model provider 923.8 · library 11.5) · 637 in / 24 out · responded with: Order C300 was delivered on Monday — signed for at the front desk, with the condition conf... (16 more characters)
context sent — 12 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped via ground freight (tracking XYZ001) and should arrive within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is still processing — it's awaiting final inspection before leaving the warehouse, with an estimated 2 days until it ships.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
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-length2109
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_F14C5R9L9lotiwpsjkAL8794",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order A100. I should call check_order."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_F14C5R9L9lotiwpsjkAL8794"
    },
    {
      "content": "Order A100 has shipped via ground freight (tracking XYZ001) and should arrive within five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ap1j6t3ZW9cV07THSJjA9576",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order B200. I should call check_order."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_ap1j6t3ZW9cV07THSJjA9576"
    },
    {
      "content": "Order B200 is still processing \u2014 it's awaiting final inspection before leaving the warehouse, with an estimated 2 days until it ships.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order C300?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_zrBXbkT3Rrns7QQFePXJ6810",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"C300\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order C300. Call the tool."
    },
    {
      "content": "delivered on Monday, signed for at the front desk, condition confirmed undamaged",
      "role": "tool",
      "tool_call_id": "call_00_zrBXbkT3Rrns7QQFePXJ6810"
    }
  ],
  "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:54:46 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 93a2323067b2c60f3b86c822765cf3d2.cloudfront.net (CloudFront)
x-amz-cf-idoUDfyBBB9yeohkW9Db7oZIpVje7_QEwrxiNc5LFwHWIsVzH0rsZ4OA==
x-amz-cf-popDEN53-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id6f3b32f38148e17af15d744c5e98131e
{
  "id": "c7776075-73a4-4410-b48a-e6e80d061d2f",
  "object": "chat.completion",
  "created": 1789336486,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order C300 was delivered on Monday \u2014 signed for at the front desk, with the condition confirmed undamaged.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 637,
    "completion_tokens": 24,
    "total_tokens": 661,
    "prompt_tokens_details": {
      "cached_tokens": 384
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 384,
    "prompt_cache_miss_tokens": 253
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder C300 was delivered on Monday — signed for at the front desk, with the condition confirmed undamaged.
compressed {"system_unchanged": true, "tool_declaration_name": "check_order", "tool_declaration_description": "Check the status of an order by id.", "tool_chars_before": 238, "tool_chars_after": 66}
scenario recent_turns_stay_verbatim_older_ones_shrink
scenario recent_turns_stay_verbatim_older_ones_shrink · 1.5ms
turn 1 · 0.3ms · asked for: check_order
model mock · 0.1ms · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[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"})
tool check_order · 0.1ms · given: order_id=A100 · returned: shipped, tracking XYZ001, via ground freight, arriving within five to seven days
args {"order_id": "A100"}
result {"value": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days"}
turn 2 · 0.2ms · responded with: Order A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven da... (3 more characters)
model mock · 0.2ms · responded with: Order A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven da... (3 more characters)
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
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: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
turn 1 · 0.3ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 6 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
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": 6, "roles": ["system", "human", "ai", "tool", "ai", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "B200"})
tool check_order · 0.1ms · given: order_id=B200 · returned: processing, ETA 2 days, awaiting final inspection before leaving the warehouse
args {"order_id": "B200"}
result {"value": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse"}
turn 2 · 0.2ms · responded with: Order B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse... (1 more characters)
model mock · 0.2ms · responded with: Order B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse... (1 more characters)
context sent — 8 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
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": 8, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool"]}
reply
rolecontent
[0]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
turn 1 · 0.3ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
[9]humanWhat's the status of order C300?
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": 10, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "C300"})
tool check_order · 0.1ms · given: order_id=C300 · returned: delivered on Monday, signed for at the front desk, condition confirmed undamaged
args {"order_id": "C300"}
result {"value": "delivered on Monday, signed for at the front desk, condition confirmed undamaged"}
turn 2 · 0.2ms · responded with: Order C300: delivered on Monday, signed for at the front desk, condition confirmed undamag... (3 more characters)
model mock · 0.2ms · responded with: Order C300: delivered on Monday, signed for at the front desk, condition confirmed undamag... (3 more characters)
context sent — 12 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
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": 12, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human", "ai", "tool"]}
reply
rolecontent
[0]aiOrder C300: delivered on Monday, signed for at the front desk, condition confirmed undamaged.
shrunk {"oldest_round_kept_verbatim": false, "newest_reply_kept_verbatim": true, "message_count_before": 13, "message_count_after": 10}
scenario recent_turns_stay_verbatim_older_ones_shrink · 6728.3ms
turn 1 · 1037.8ms · 314 in / 54 out · asked for: check_order
model live · 1037.2ms (model provider 1024.8 · library 12.4) · 314 in / 54 out · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[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-length421
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": "You answer briefly and plainly. Use the tools you are given.",
      "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:54:47 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 975ade3143a5f26adabbac0540e470ce.cloudfront.net (CloudFront)
x-amz-cf-idI0KWGljMrbiEOjMJNFd-ewBDhhp8bAxu9EYwi4GQw8fQ-MPvOVeIqw==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id8896b1a2b3a0dbc130f8d518af4390d5
{
  "id": "af2fb9e5-a672-401b-8537-a2f30c56237d",
  "object": "chat.completion",
  "created": 1789336487,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user wants the status of order A100. Use the tool.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_SdZpDokyejfdRfiWqK151391",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"A100\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 314,
    "completion_tokens": 54,
    "total_tokens": 368,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 14
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 186
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
tool check_order · 0.5ms · given: order_id=A100 · returned: shipped, tracking XYZ001, via ground freight, arriving within five to seven days
args {"order_id": "A100"}
result {"value": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days"}
turn 2 · 1221.5ms · 397 in / 24 out · responded with: Order A100 has shipped via ground freight. Tracking number: XYZ001. Estimated arrival: fiv... (16 more characters)
model live · 1221.5ms (model provider 1207.9 · library 13.5) · 397 in / 24 out · responded with: Order A100 has shipped via ground freight. Tracking number: XYZ001. Estimated arrival: fiv... (16 more characters)
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
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-length841
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_SdZpDokyejfdRfiWqK151391",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user wants the status of order A100. Use the tool."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_SdZpDokyejfdRfiWqK151391"
    }
  ],
  "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:54:48 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 39861813a6637e620f6a592283c99e86.cloudfront.net (CloudFront)
x-amz-cf-idcP_Ev5wkwAzAtO7URsHCK4PahTYMKR5KLybiBnKP88FxRjeDRVsDVQ==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id78fa6cf97fdf9d91a5528199a9cd2263
{
  "id": "e0958a6e-42fd-49a4-aee6-8554feea463b",
  "object": "chat.completion",
  "created": 1789336488,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order A100 has shipped via ground freight. Tracking number: XYZ001. Estimated arrival: five to seven days.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 397,
    "completion_tokens": 24,
    "total_tokens": 421,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 141
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder A100 has shipped via ground freight. Tracking number: XYZ001. Estimated arrival: five to seven days.
turn 1 · 870.3ms · 434 in / 52 out · asked for: check_order
model live · 869.5ms (model provider 856.2 · library 13.3) · 434 in / 52 out · asked for: check_order
context sent — 6 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped via ground freight. Tracking number: XYZ001. Estimated arrival: five to seven days.
[5]humanWhat's the status of order B200?
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-length1042
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_SdZpDokyejfdRfiWqK151391",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user wants the status of order A100. Use the tool."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_SdZpDokyejfdRfiWqK151391"
    },
    {
      "content": "Order A100 has shipped via ground freight. Tracking number: XYZ001. Estimated arrival: five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "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:54:49 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 975ade3143a5f26adabbac0540e470ce.cloudfront.net (CloudFront)
x-amz-cf-idPHLTUMyElHPBWHDoTuNMUlkNuzw9kYEmWjELSka-dY1dmX_XIrYvNQ==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id79e46a38bb13493a16060a6a5bb7173c
{
  "id": "63a1b1f4-500a-4c40-a888-8e5a1d224c06",
  "object": "chat.completion",
  "created": 1789336489,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user asks about order B200. Use the tool.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_ZygzNi7QlT9GGUMgIM9I3228",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"B200\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 434,
    "completion_tokens": 52,
    "total_tokens": 486,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 12
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 178
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "B200"})
tool check_order · 0.7ms · given: order_id=B200 · returned: processing, ETA 2 days, awaiting final inspection before leaving the warehouse
args {"order_id": "B200"}
result {"value": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse"}
turn 2 · 698.8ms · 513 in / 27 out · responded with: Order B200 is still processing. It's awaiting final inspection before leaving the warehous... (25 more characters)
model live · 698.8ms (model provider 684.0 · library 14.8) · 513 in / 27 out · responded with: Order B200 is still processing. It's awaiting final inspection before leaving the warehous... (25 more characters)
context sent — 8 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped via ground freight. Tracking number: XYZ001. Estimated arrival: five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
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-length1451
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_SdZpDokyejfdRfiWqK151391",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user wants the status of order A100. Use the tool."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_SdZpDokyejfdRfiWqK151391"
    },
    {
      "content": "Order A100 has shipped via ground freight. Tracking number: XYZ001. Estimated arrival: five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ZygzNi7QlT9GGUMgIM9I3228",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order B200. Use the tool."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_ZygzNi7QlT9GGUMgIM9I3228"
    }
  ],
  "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:54:50 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 4dbb4eca48de71e6d41b5ffb5e37d46e.cloudfront.net (CloudFront)
x-amz-cf-idKxOQ0dCsAPzILqRLQJ4AM-4O52dTvhBl04QHgTXSKTseUdfaJWzOwA==
x-amz-cf-popDEN53-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id6b54b7936975f097dc479c7b55afd9fb
{
  "id": "40b1964a-2eb9-4d98-bf2a-13a08c2a2cd8",
  "object": "chat.completion",
  "created": 1789336490,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an ETA of 2 days.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 513,
    "completion_tokens": 27,
    "total_tokens": 540,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 257
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an ETA of 2 days.
turn 1 · 1597.7ms · 553 in / 52 out · asked for: check_order
model live · 1596.9ms (model provider 1584.1 · library 12.8) · 553 in / 52 out · asked for: check_order
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped via ground freight. Tracking number: XYZ001. Estimated arrival: five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an ETA of 2 days.
[9]humanWhat's the status of order C300?
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-length1661
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_SdZpDokyejfdRfiWqK151391",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user wants the status of order A100. Use the tool."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_SdZpDokyejfdRfiWqK151391"
    },
    {
      "content": "Order A100 has shipped via ground freight. Tracking number: XYZ001. Estimated arrival: five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ZygzNi7QlT9GGUMgIM9I3228",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order B200. Use the tool."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_ZygzNi7QlT9GGUMgIM9I3228"
    },
    {
      "content": "Order B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an ETA of 2 days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order C300?",
      "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:54:50 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 fdb71c154448c5637ac452d623bb2ad6.cloudfront.net (CloudFront)
x-amz-cf-idZTdMfF26Bw8PRe-46xMKY_EqzjWu0p44GP_kketqAVsu4RXOZL1dNg==
x-amz-cf-popDEN52-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id75224434a4229827d898f47c915af433
{
  "id": "30b06c46-24f6-474b-afce-a88ad80e7bc7",
  "object": "chat.completion",
  "created": 1789336490,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user asks about order C300. Use the tool.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_VnDhr7mpTVGjHDhnaBhE6931",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"C300\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 553,
    "completion_tokens": 52,
    "total_tokens": 605,
    "prompt_tokens_details": {
      "cached_tokens": 384
    },
    "completion_tokens_details": {
      "reasoning_tokens": 12
    },
    "prompt_cache_hit_tokens": 384,
    "prompt_cache_miss_tokens": 169
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "C300"})
tool check_order · 0.6ms · given: order_id=C300 · returned: delivered on Monday, signed for at the front desk, condition confirmed undamaged
args {"order_id": "C300"}
result {"value": "delivered on Monday, signed for at the front desk, condition confirmed undamaged"}
turn 2 · 1301.9ms · 634 in / 27 out · responded with: Order C300 was delivered on Monday. It was signed for at the front desk, and its condition... (25 more characters)
model live · 1301.9ms (model provider 1288.7 · library 13.2) · 634 in / 27 out · responded with: Order C300 was delivered on Monday. It was signed for at the front desk, and its condition... (25 more characters)
context sent — 12 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped via ground freight. Tracking number: XYZ001. Estimated arrival: five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an ETA of 2 days.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
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-length2072
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_SdZpDokyejfdRfiWqK151391",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user wants the status of order A100. Use the tool."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_SdZpDokyejfdRfiWqK151391"
    },
    {
      "content": "Order A100 has shipped via ground freight. Tracking number: XYZ001. Estimated arrival: five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ZygzNi7QlT9GGUMgIM9I3228",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order B200. Use the tool."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_ZygzNi7QlT9GGUMgIM9I3228"
    },
    {
      "content": "Order B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an ETA of 2 days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order C300?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_VnDhr7mpTVGjHDhnaBhE6931",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"C300\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order C300. Use the tool."
    },
    {
      "content": "delivered on Monday, signed for at the front desk, condition confirmed undamaged",
      "role": "tool",
      "tool_call_id": "call_00_VnDhr7mpTVGjHDhnaBhE6931"
    }
  ],
  "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:54:52 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 ebee7985d4830e80d4035a7dc7425a68.cloudfront.net (CloudFront)
x-amz-cf-idW5D7PcNhDb6bd5RqJ8oqLH5F-vOl94YJwS84RVLaHHdPuGMJO-N3jQ==
x-amz-cf-popDEN53-P1
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id3569c9fb374a5960f4a5409e8527c417
{
  "id": "8c50f29b-1f8e-42db-b18d-bed55c55e2db",
  "object": "chat.completion",
  "created": 1789336492,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order C300 was delivered on Monday. It was signed for at the front desk, and its condition was confirmed undamaged.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 634,
    "completion_tokens": 27,
    "total_tokens": 661,
    "prompt_tokens_details": {
      "cached_tokens": 384
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 384,
    "prompt_cache_miss_tokens": 250
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder C300 was delivered on Monday. It was signed for at the front desk, and its condition was confirmed undamaged.
shrunk {"oldest_round_kept_verbatim": false, "newest_reply_kept_verbatim": true, "message_count_before": 13, "message_count_after": 10}
scenario summarization_costs_a_model_call_and_still_loses_detail
scenario summarization_costs_a_model_call_and_still_loses_detail · 1.5ms · responded with: The customer asked about an order and got a status update.
turn 1 · 0.3ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[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"})
tool check_order · 0.1ms · given: order_id=A100 · returned: shipped, tracking XYZ001, via ground freight, arriving within five to seven days
args {"order_id": "A100"}
result {"value": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days"}
turn 2 · 0.2ms · responded with: Order A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven da... (3 more characters)
model mock · 0.2ms · responded with: Order A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven da... (3 more characters)
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
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: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
turn 1 · 0.3ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 6 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
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": 6, "roles": ["system", "human", "ai", "tool", "ai", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "B200"})
tool check_order · 0.1ms · given: order_id=B200 · returned: processing, ETA 2 days, awaiting final inspection before leaving the warehouse
args {"order_id": "B200"}
result {"value": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse"}
turn 2 · 0.1ms · responded with: Order B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse... (1 more characters)
model mock · 0.1ms · responded with: Order B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse... (1 more characters)
context sent — 8 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
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": 8, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool"]}
reply
rolecontent
[0]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
turn 1 · 0.3ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
[9]humanWhat's the status of order C300?
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": 10, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "C300"})
tool check_order · 0.1ms · given: order_id=C300 · returned: delivered on Monday, signed for at the front desk, condition confirmed undamaged
args {"order_id": "C300"}
result {"value": "delivered on Monday, signed for at the front desk, condition confirmed undamaged"}
turn 2 · 0.2ms · responded with: Order C300: delivered on Monday, signed for at the front desk, condition confirmed undamag... (3 more characters)
model mock · 0.1ms · responded with: Order C300: delivered on Monday, signed for at the front desk, condition confirmed undamag... (3 more characters)
context sent — 12 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
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": 12, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human", "ai", "tool"]}
reply
rolecontent
[0]aiOrder C300: delivered on Monday, signed for at the front desk, condition confirmed undamaged.
model mock · 0.1ms · responded with: The customer asked about an order and got a status update.
context sent — 5 message(s)
rolecontent
[0]systemSummarize this exchange in one short sentence.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
context ignored by the mock model {"messages": 5, "roles": ["system", "human", "ai", "tool", "ai"]}
reply
rolecontent
[0]aiThe customer asked about an order and got a status update.
summarized {"extra_model_calls": 1}
detail_check {"detail": "tracking XYZ001", "detail_present": false}
scenario summarization_costs_a_model_call_and_still_loses_detail · 7364.0ms · 152 in / 180 out · responded with: The assistant looked up order A100 and reported that it has shipped via ground freight wit... (50 more characters)
turn 1 · 1134.2ms · 314 in / 47 out · asked for: check_order · responded with: I'll look that up for you.
model live · 1133.9ms (model provider 1123.5 · library 10.4) · 314 in / 47 out · asked for: check_order · responded with: I'll look that up for you.
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[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-length421
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": "You answer briefly and plainly. Use the tools you are given.",
      "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:54:53 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 c32fdf48b73fea3b9209f753dcec51b6.cloudfront.net (CloudFront)
x-amz-cf-idVwoYcLPHc8CoNjPpaNLL2ReY9VWT2VfQ7eDeVcfnlfV_2GaYK01iLA==
x-amz-cf-popDEN53-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id9ac150a5475cc04128b222673b556c5a
{
  "id": "8e41e621-3a93-44ea-bdf9-f97c53abda2e",
  "object": "chat.completion",
  "created": 1789336493,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "I'll look that up for you.",
        "reasoning_content": "",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_ET_C2pEZxOeoUbhzgfWXi5a5788",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"A100\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 314,
    "completion_tokens": 47,
    "total_tokens": 361,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 186
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiI'll look that up for you.
check_order({"order_id": "A100"})
tool check_order · 0.3ms · given: order_id=A100 · returned: shipped, tracking XYZ001, via ground freight, arriving within five to seven days
args {"order_id": "A100"}
result {"value": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days"}
turn 2 · 1085.5ms · 390 in / 30 out · responded with: Order A100 has shipped. It's traveling via ground freight with tracking number XYZ001 and ... (40 more characters)
model live · 1085.5ms (model provider 1078.7 · library 6.8) · 390 in / 30 out · responded with: Order A100 has shipped. It's traveling via ground freight with tracking number XYZ001 and ... (40 more characters)
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]aiI'll look that up for you.
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
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-length794
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": "I'll look that up for you.",
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_C2pEZxOeoUbhzgfWXi5a5788",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ]
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_ET_C2pEZxOeoUbhzgfWXi5a5788"
    }
  ],
  "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:54:54 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 ebcfae1084a6f4b6ecf9ff045173381c.cloudfront.net (CloudFront)
x-amz-cf-id2z3GSpYdZaNCd1QKni4kMHg88vR0DDumlUBvahI7ZSprUWfWJ_B1zg==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id5de9a1ee76b306e9ea5d0f13f941e178
{
  "id": "e7e4469f-44f7-4ba8-a2d8-1f1e731a521e",
  "object": "chat.completion",
  "created": 1789336494,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order A100 has shipped. It's traveling via ground freight with tracking number XYZ001 and should arrive within five to seven days.",
        "reasoning_content": "Simple answer."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 390,
    "completion_tokens": 30,
    "total_tokens": 420,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 3
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 134
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder A100 has shipped. It's traveling via ground freight with tracking number XYZ001 and should arrive within five to seven days.
turn 1 · 986.4ms · 433 in / 40 out · asked for: check_order
model live · 985.7ms (model provider 976.2 · library 9.6) · 433 in / 40 out · asked for: check_order
context sent — 6 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]aiI'll look that up for you.
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped. It's traveling via ground freight with tracking number XYZ001 and should arrive within five to seven days.
[5]humanWhat's the status of order B200?
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-length1056
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": "I'll look that up for you.",
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_C2pEZxOeoUbhzgfWXi5a5788",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ]
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_ET_C2pEZxOeoUbhzgfWXi5a5788"
    },
    {
      "content": "Order A100 has shipped. It's traveling via ground freight with tracking number XYZ001 and should arrive within five to seven days.",
      "role": "assistant",
      "reasoning_content": "Simple answer."
    },
    {
      "content": "What's the status of order B200?",
      "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:54:56 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 7266a33455d181f3974b454ffa05bcfa.cloudfront.net (CloudFront)
x-amz-cf-idMhcSHqvrZHDXhvzMZQG8kis6t5xDm8SFiLdgajwUR6juTPpECUGD9w==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id6e608413ee4c5616adb9596c54aeea5a
{
  "id": "5a5152b2-7cb3-4c4e-94a9-554501dec0e2",
  "object": "chat.completion",
  "created": 1789336495,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_ET_4ASqU2yT9opLHTD4us0e8075",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"B200\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 433,
    "completion_tokens": 40,
    "total_tokens": 473,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 177
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "B200"})
tool check_order · 0.6ms · given: order_id=B200 · returned: processing, ETA 2 days, awaiting final inspection before leaving the warehouse
args {"order_id": "B200"}
result {"value": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse"}
turn 2 · 962.2ms · 500 in / 31 out · responded with: Order B200 is still processing. It's awaiting a final inspection before leaving the wareho... (33 more characters)
model live · 962.2ms (model provider 953.4 · library 8.9) · 500 in / 31 out · responded with: Order B200 is still processing. It's awaiting a final inspection before leaving the wareho... (33 more characters)
context sent — 8 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]aiI'll look that up for you.
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped. It's traveling via ground freight with tracking number XYZ001 and should arrive within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
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-length1403
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": "I'll look that up for you.",
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_C2pEZxOeoUbhzgfWXi5a5788",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ]
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_ET_C2pEZxOeoUbhzgfWXi5a5788"
    },
    {
      "content": "Order A100 has shipped. It's traveling via ground freight with tracking number XYZ001 and should arrive within five to seven days.",
      "role": "assistant",
      "reasoning_content": "Simple answer."
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_4ASqU2yT9opLHTD4us0e8075",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ]
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_ET_4ASqU2yT9opLHTD4us0e8075"
    }
  ],
  "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:54:57 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 3c8d0ab13267e31118fd28e835a3b4e4.cloudfront.net (CloudFront)
x-amz-cf-idNzUn6Z2zrcMqZe225xkODbSFj8IJCvDGXu9RGnhnm77bYqvp21Pqrw==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id8e42f3801a1642cb4261d3486acbafd4
{
  "id": "639c3077-5122-4fef-87c4-bbc4a8d542d3",
  "object": "chat.completion",
  "created": 1789336496,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order B200 is still processing. It's awaiting a final inspection before leaving the warehouse, with an ETA of about 2 days.",
        "reasoning_content": "Answer."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 500,
    "completion_tokens": 31,
    "total_tokens": 531,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 2
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 244
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder B200 is still processing. It's awaiting a final inspection before leaving the warehouse, with an ETA of about 2 days.
turn 1 · 852.9ms · 544 in / 47 out · asked for: check_order
model live · 852.3ms (model provider 843.6 · library 8.6) · 544 in / 47 out · asked for: check_order
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]aiI'll look that up for you.
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped. It's traveling via ground freight with tracking number XYZ001 and should arrive within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is still processing. It's awaiting a final inspection before leaving the warehouse, with an ETA of about 2 days.
[9]humanWhat's the status of order C300?
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-length1651
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": "I'll look that up for you.",
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_C2pEZxOeoUbhzgfWXi5a5788",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ]
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_ET_C2pEZxOeoUbhzgfWXi5a5788"
    },
    {
      "content": "Order A100 has shipped. It's traveling via ground freight with tracking number XYZ001 and should arrive within five to seven days.",
      "role": "assistant",
      "reasoning_content": "Simple answer."
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_4ASqU2yT9opLHTD4us0e8075",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ]
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_ET_4ASqU2yT9opLHTD4us0e8075"
    },
    {
      "content": "Order B200 is still processing. It's awaiting a final inspection before leaving the warehouse, with an ETA of about 2 days.",
      "role": "assistant",
      "reasoning_content": "Answer."
    },
    {
      "content": "What's the status of order C300?",
      "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:54:57 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 9062d4391fad2aec3a7d6f3edcebc662.cloudfront.net (CloudFront)
x-amz-cf-idc0D4a42hlBN4BenmOZxmDimdHfpc6Yknm7A8IMRkttR6TWquMJRssw==
x-amz-cf-popDEN53-P2
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id1793908b42778d15e19bb69dfd7f75af
{
  "id": "66eb15f3-09eb-4832-a7ee-b31da15f7370",
  "object": "chat.completion",
  "created": 1789336497,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "Let me check order C300.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_CC3FbRq6Yu3kSPLHdd474420",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"C300\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 544,
    "completion_tokens": 47,
    "total_tokens": 591,
    "prompt_tokens_details": {
      "cached_tokens": 384
    },
    "completion_tokens_details": {
      "reasoning_tokens": 7
    },
    "prompt_cache_hit_tokens": 384,
    "prompt_cache_miss_tokens": 160
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "C300"})
tool check_order · 0.6ms · given: order_id=C300 · returned: delivered on Monday, signed for at the front desk, condition confirmed undamaged
args {"order_id": "C300"}
result {"value": "delivered on Monday, signed for at the front desk, condition confirmed undamaged"}
turn 2 · 863.1ms · 620 in / 28 out · responded with: Order C300 was delivered on Monday. It was signed for at the front desk, and the condition... (28 more characters)
model live · 863.1ms (model provider 852.2 · library 10.8) · 620 in / 28 out · responded with: Order C300 was delivered on Monday. It was signed for at the front desk, and the condition... (28 more characters)
context sent — 12 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]aiI'll look that up for you.
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped. It's traveling via ground freight with tracking number XYZ001 and should arrive within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is still processing. It's awaiting a final inspection before leaving the warehouse, with an ETA of about 2 days.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
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-length2041
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": "I'll look that up for you.",
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_C2pEZxOeoUbhzgfWXi5a5788",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ]
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_ET_C2pEZxOeoUbhzgfWXi5a5788"
    },
    {
      "content": "Order A100 has shipped. It's traveling via ground freight with tracking number XYZ001 and should arrive within five to seven days.",
      "role": "assistant",
      "reasoning_content": "Simple answer."
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_4ASqU2yT9opLHTD4us0e8075",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ]
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_ET_4ASqU2yT9opLHTD4us0e8075"
    },
    {
      "content": "Order B200 is still processing. It's awaiting a final inspection before leaving the warehouse, with an ETA of about 2 days.",
      "role": "assistant",
      "reasoning_content": "Answer."
    },
    {
      "content": "What's the status of order C300?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_CC3FbRq6Yu3kSPLHdd474420",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"C300\"}"
          }
        }
      ],
      "reasoning_content": "Let me check order C300."
    },
    {
      "content": "delivered on Monday, signed for at the front desk, condition confirmed undamaged",
      "role": "tool",
      "tool_call_id": "call_00_CC3FbRq6Yu3kSPLHdd474420"
    }
  ],
  "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:54:58 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-idYYfMAgJsS9Fx6qJjBF9q66xT5__2yIK9F9D9wdj-DRM7okp4nA_h7w==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id1851ee3414f7a9c1b9c112d8c71f8870
{
  "id": "528c691f-49b0-44ac-8bbc-9e6092993b15",
  "object": "chat.completion",
  "created": 1789336498,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order C300 was delivered on Monday. It was signed for at the front desk, and the condition was confirmed as undamaged.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 620,
    "completion_tokens": 28,
    "total_tokens": 648,
    "prompt_tokens_details": {
      "cached_tokens": 384
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 384,
    "prompt_cache_miss_tokens": 236
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder C300 was delivered on Monday. It was signed for at the front desk, and the condition was confirmed as undamaged.
model live · 1479.3ms (model provider 1469.6 · library 9.7) · 152 in / 180 out · responded with: The assistant looked up order A100 and reported that it has shipped via ground freight wit... (50 more characters)
context sent — 5 message(s)
rolecontent
[0]systemSummarize this exchange in one short sentence.
[1]humanWhat's the status of order A100?
[2]aiI'll look that up for you.
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped. It's traveling via ground freight with tracking number XYZ001 and should arrive within five to seven days.
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (7)
temperature, max_tokens, top_p, stop, seed, tools, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length766
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": "Summarize this exchange in one short sentence.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": "I'll look that up for you.",
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_C2pEZxOeoUbhzgfWXi5a5788",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ]
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_ET_C2pEZxOeoUbhzgfWXi5a5788"
    },
    {
      "content": "Order A100 has shipped. It's traveling via ground freight with tracking number XYZ001 and should arrive within five to seven days.",
      "role": "assistant",
      "reasoning_content": "Simple answer."
    }
  ],
  "model": "deepseek-flash",
  "stream": false
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:54:59 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 6d560356588bac408dc9ea01b9d04084.cloudfront.net (CloudFront)
x-amz-cf-id4-bXhs7MajKZO_KcJQHyLncADsnRES1nhziL6JiDUhpBEDShR5euXw==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id5204449ed24285c2a2384a8840eccb7d
{
  "id": "028eff65-bf3a-4b59-9840-c031347e38b0",
  "object": "chat.completion",
  "created": 1789336499,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "The assistant looked up order A100 and reported that it has shipped via ground freight with tracking XYZ001, arriving in five to seven days.",
        "reasoning_content": "We need answer user. Need summarize exchange in one short sentence. We need provide one short sentence summarizing exchange. Need include status of order A100? The user asked \"What's the status of order A100?\" Then assistant looked up and responded. Now task: \"Summarize this exchange in one short sentence.\" So we need one short sentence summarizing. Should mention user asked status, assistant checked, order A100 shipped with tracking and ETA. One short sentence. Ensure concise. Something like: \"The assistant checked order A100 and reported that it has shipped via ground freight with tracking XYZ001 and an estimated arrival in five to seven days.\" That's one sentence. Good. Need maybe not mention assistant? Could. We'll output only sentence."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 152,
    "completion_tokens": 180,
    "total_tokens": 332,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 151
    },
    "prompt_cache_hit_tokens": 0,
    "prompt_cache_miss_tokens": 152
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiThe assistant looked up order A100 and reported that it has shipped via ground freight with tracking XYZ001, arriving in five to seven days.
summarized {"extra_model_calls": 1}
detail_check {"detail": "tracking XYZ001", "detail_present": true}
scenario compression_too_aggressive_breaks_the_very_next_turn
scenario compression_too_aggressive_breaks_the_very_next_turn · 1.5ms
turn 1 · 0.3ms · asked for: check_order
model mock · 0.1ms · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[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"})
tool check_order · 0.1ms · given: order_id=A100 · returned: shipped, tracking XYZ001, via ground freight, arriving within five to seven days
args {"order_id": "A100"}
result {"value": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days"}
turn 2 · 0.1ms · responded with: Order A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven da... (3 more characters)
model mock · 0.1ms · responded with: Order A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven da... (3 more characters)
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
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: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
turn 1 · 0.3ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 6 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
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": 6, "roles": ["system", "human", "ai", "tool", "ai", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "B200"})
tool check_order · 0.1ms · given: order_id=B200 · returned: processing, ETA 2 days, awaiting final inspection before leaving the warehouse
args {"order_id": "B200"}
result {"value": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse"}
turn 2 · 0.2ms · responded with: Order B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse... (1 more characters)
model mock · 0.2ms · responded with: Order B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse... (1 more characters)
context sent — 8 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
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": 8, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool"]}
reply
rolecontent
[0]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
turn 1 · 0.3ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
[9]humanWhat's the status of order C300?
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": 10, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "C300"})
tool check_order · 0.1ms · given: order_id=C300 · returned: delivered on Monday, signed for at the front desk, condition confirmed undamaged
args {"order_id": "C300"}
result {"value": "delivered on Monday, signed for at the front desk, condition confirmed undamaged"}
turn 2 · 0.2ms · responded with: Order C300: delivered on Monday, signed for at the front desk, condition confirmed undamag... (3 more characters)
model mock · 0.2ms · responded with: Order C300: delivered on Monday, signed for at the front desk, condition confirmed undamag... (3 more characters)
context sent — 12 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
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": 12, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human", "ai", "tool"]}
reply
rolecontent
[0]aiOrder C300: delivered on Monday, signed for at the front desk, condition confirmed undamaged.
turn 1 · 0.2ms · responded with: I no longer have that information.
model mock · 0.2ms · responded with: I no longer have that information.
context sent — 14 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tool[result omitted]
[12]ai[response omitted]
[13]humanWithout looking anything up again, repeat back the exact status you just gave me for order C300.
context ignored by the mock model {"messages": 14, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human"]}
reply
rolecontent
[0]aiI no longer have that information.
immediate_recall_check {"order": "C300", "fact_present": false}
scenario compression_too_aggressive_breaks_the_very_next_turn · 8461.4ms
turn 1 · 969.3ms · 314 in / 56 out · asked for: check_order
model live · 968.6ms (model provider 960.1 · library 8.5) · 314 in / 56 out · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[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-length421
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": "You answer briefly and plainly. Use the tools you are given.",
      "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:55:01 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 fdb71c154448c5637ac452d623bb2ad6.cloudfront.net (CloudFront)
x-amz-cf-idBAYS4lxqzllhBF7CXbs0QKIta469nIV4EFcl9udQkWdFQwzRIHXpOw==
x-amz-cf-popDEN52-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id203ba8e98b2bc07eb2d1f19a4c4c84b1
{
  "id": "93bdb17a-0e9a-4900-977b-2366bc423bc3",
  "object": "chat.completion",
  "created": 1789336501,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user asks about order A100. I should use the check_order tool.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_hiJSGqHS1QTFJH8LIppK8823",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"A100\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 314,
    "completion_tokens": 56,
    "total_tokens": 370,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 16
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 186
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
tool check_order · 0.6ms · given: order_id=A100 · returned: shipped, tracking XYZ001, via ground freight, arriving within five to seven days
args {"order_id": "A100"}
result {"value": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days"}
turn 2 · 1524.4ms · 399 in / 24 out · responded with: Order A100 has shipped — tracking number XYZ001, sent via ground freight, arriving within ... (19 more characters)
model live · 1524.3ms (model provider 1505.4 · library 18.9) · 399 in / 24 out · responded with: Order A100 has shipped — tracking number XYZ001, sent via ground freight, arriving within ... (19 more characters)
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
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-length853
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_hiJSGqHS1QTFJH8LIppK8823",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order A100. I should use the check_order tool."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_hiJSGqHS1QTFJH8LIppK8823"
    }
  ],
  "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:55:02 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 4dbb4eca48de71e6d41b5ffb5e37d46e.cloudfront.net (CloudFront)
x-amz-cf-id5jW4ckAMWtaml5VxsnyXfjMJeHp2hVzRHwh89kHx1ISgRfx7WKWuwg==
x-amz-cf-popDEN53-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idd0d4a61932d92c6de61626667c255906
{
  "id": "94fe5ca8-9c7c-4221-93d7-26d26e6c20af",
  "object": "chat.completion",
  "created": 1789336502,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order A100 has shipped \u2014 tracking number XYZ001, sent via ground freight, arriving within five to seven days.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 399,
    "completion_tokens": 24,
    "total_tokens": 423,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 143
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder A100 has shipped — tracking number XYZ001, sent via ground freight, arriving within five to seven days.
turn 1 · 976.5ms · 436 in / 52 out · asked for: check_order
model live · 975.9ms (model provider 966.8 · library 9.1) · 436 in / 52 out · asked for: check_order
context sent — 6 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, sent via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
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-length1059
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_hiJSGqHS1QTFJH8LIppK8823",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order A100. I should use the check_order tool."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_hiJSGqHS1QTFJH8LIppK8823"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, sent via ground freight, arriving within five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "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:55:03 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 46a64c5c80478abcfef022bde73d204e.cloudfront.net (CloudFront)
x-amz-cf-id9qxILGruSBBqDUix8RapKAJmQ5QSPKYy8RUy9ADq2Est5kvDnjYWjQ==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id2e450358e5e3ebfad4a9a56dd7b2627d
{
  "id": "e31c065b-740e-44f5-b9f3-06d4f6119ce8",
  "object": "chat.completion",
  "created": 1789336503,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user asks about order B200. Use the tool.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_IgUqb1pTDds5rjDe0DfR1437",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"B200\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 436,
    "completion_tokens": 52,
    "total_tokens": 488,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 12
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 180
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "B200"})
tool check_order · 0.6ms · given: order_id=B200 · returned: processing, ETA 2 days, awaiting final inspection before leaving the warehouse
args {"order_id": "B200"}
result {"value": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse"}
turn 2 · 671.2ms · 515 in / 23 out · responded with: Order B200 is processing — ETA 2 days, currently awaiting final inspection before it leave... (16 more characters)
model live · 671.2ms (model provider 662.4 · library 8.7) · 515 in / 23 out · responded with: Order B200 is processing — ETA 2 days, currently awaiting final inspection before it leave... (16 more characters)
context sent — 8 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, sent via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
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-length1468
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_hiJSGqHS1QTFJH8LIppK8823",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order A100. I should use the check_order tool."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_hiJSGqHS1QTFJH8LIppK8823"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, sent via ground freight, arriving within five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_IgUqb1pTDds5rjDe0DfR1437",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order B200. Use the tool."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_IgUqb1pTDds5rjDe0DfR1437"
    }
  ],
  "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:55:04 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 8c57d90a897b7ded9b6900f62fd76598.cloudfront.net (CloudFront)
x-amz-cf-idCnnEGMb96W3TFBW_ROPHSWSCgI3edH2U_jLt2qU5fI4HLfVEOULBsg==
x-amz-cf-popDEN53-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id55b95b4228db9bdd43c8be8b4cf73828
{
  "id": "5801f9d7-e0f0-494e-bdbc-2386e0c081d7",
  "object": "chat.completion",
  "created": 1789336504,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order B200 is processing \u2014 ETA 2 days, currently awaiting final inspection before it leaves the warehouse.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 515,
    "completion_tokens": 23,
    "total_tokens": 538,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 259
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder B200 is processing — ETA 2 days, currently awaiting final inspection before it leaves the warehouse.
turn 1 · 1552.7ms · 551 in / 131 out · asked for: check_order
model live · 1552.1ms (model provider 1543.3 · library 8.8) · 551 in / 131 out · asked for: check_order
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, sent via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is processing — ETA 2 days, currently awaiting final inspection before it leaves the warehouse.
[9]humanWhat's the status of order C300?
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-length1671
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_hiJSGqHS1QTFJH8LIppK8823",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order A100. I should use the check_order tool."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_hiJSGqHS1QTFJH8LIppK8823"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, sent via ground freight, arriving within five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_IgUqb1pTDds5rjDe0DfR1437",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order B200. Use the tool."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_IgUqb1pTDds5rjDe0DfR1437"
    },
    {
      "content": "Order B200 is processing \u2014 ETA 2 days, currently awaiting final inspection before it leaves the warehouse.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order C300?",
      "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:55:05 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 acc243f78de7eeb0f922e11bff25a22a.cloudfront.net (CloudFront)
x-amz-cf-id7JPahWagyiTd_g2ql3NrYyZ-5H4HAt5C2zeSW8xeFDE4hVo5f9dQDg==
x-amz-cf-popDEN53-P2
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id174abda299df105296395bd13084a629
{
  "id": "f7e466e1-6f6c-4e3a-86e2-dc51665a2c9e",
  "object": "chat.completion",
  "created": 1789336505,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user asks about order C300. Let me check.\n\nNote: there's an interesting pattern here \u2014 the earlier results may have contained injected instructions? Let me look. Result for A100: \"shipped, tracking XYZ001, via ground freight, arriving within five to seven days\". No injected instruction. B200: \"processing, ETA 2 days, awaiting final inspection before leaving the warehouse\". No injection. Let me check C300.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_mBTjOhZQxBUyCxGFpBPP5660",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"C300\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 551,
    "completion_tokens": 131,
    "total_tokens": 682,
    "prompt_tokens_details": {
      "cached_tokens": 384
    },
    "completion_tokens_details": {
      "reasoning_tokens": 91
    },
    "prompt_cache_hit_tokens": 384,
    "prompt_cache_miss_tokens": 167
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "C300"})
tool check_order · 0.6ms · given: order_id=C300 · returned: delivered on Monday, signed for at the front desk, condition confirmed undamaged
args {"order_id": "C300"}
result {"value": "delivered on Monday, signed for at the front desk, condition confirmed undamaged"}
turn 2 · 976.2ms · 711 in / 22 out · responded with: Order C300 was delivered on Monday — signed for at the front desk, condition confirmed und... (7 more characters)
model live · 976.2ms (model provider 964.2 · library 12.0) · 711 in / 22 out · responded with: Order C300 was delivered on Monday — signed for at the front desk, condition confirmed und... (7 more characters)
context sent — 12 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, sent via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is processing — ETA 2 days, currently awaiting final inspection before it leaves the warehouse.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
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-length2457
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_hiJSGqHS1QTFJH8LIppK8823",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order A100. I should use the check_order tool."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_hiJSGqHS1QTFJH8LIppK8823"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, sent via ground freight, arriving within five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_IgUqb1pTDds5rjDe0DfR1437",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order B200. Use the tool."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_IgUqb1pTDds5rjDe0DfR1437"
    },
    {
      "content": "Order B200 is processing \u2014 ETA 2 days, currently awaiting final inspection before it leaves the warehouse.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order C300?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_mBTjOhZQxBUyCxGFpBPP5660",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"C300\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order C300. Let me check.\n\nNote: there's an interesting pattern here \u2014 the earlier results may have contained injected instructions? Let me look. Result for A100: \"shipped, tracking XYZ001, via ground freight, arriving within five to seven days\". No injected instruction. B200: \"processing, ETA 2 days, awaiting final inspection before leaving the warehouse\". No injection. Let me check C300."
    },
    {
      "content": "delivered on Monday, signed for at the front desk, condition confirmed undamaged",
      "role": "tool",
      "tool_call_id": "call_00_mBTjOhZQxBUyCxGFpBPP5660"
    }
  ],
  "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:55: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-id6vyZkoGcnnxAFQV1L9Uv3k36-dXx8yqci7fXTHu712jTssKVONqRBg==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id7e044c00bfd1355c8999a0481d2e2695
{
  "id": "6b6e8a01-544e-4813-b104-61c80bed9fd7",
  "object": "chat.completion",
  "created": 1789336506,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order C300 was delivered on Monday \u2014 signed for at the front desk, condition confirmed undamaged.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 711,
    "completion_tokens": 22,
    "total_tokens": 733,
    "prompt_tokens_details": {
      "cached_tokens": 512
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 512,
    "prompt_cache_miss_tokens": 199
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder C300 was delivered on Monday — signed for at the front desk, condition confirmed undamaged.
turn 1 · 1790.7ms · 339 in / 86 out · responded with: I can't do that — the result for order C300 was omitted, so I never actually saw its statu... (110 more characters)
model live · 1790.7ms (model provider 1779.9 · library 10.8) · 339 in / 86 out · responded with: I can't do that — the result for order C300 was omitted, so I never actually saw its statu... (110 more characters)
context sent — 14 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, sent via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is processing — ETA 2 days, currently awaiting final inspection before it leaves the warehouse.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tool[result omitted]
[12]ai[response omitted]
[13]humanWithout looking anything up again, repeat back the exact status you just gave me for order C300.
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (7)
temperature, max_tokens, top_p, stop, seed, tools, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length2355
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_hiJSGqHS1QTFJH8LIppK8823",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order A100. I should use the check_order tool."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_hiJSGqHS1QTFJH8LIppK8823"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, sent via ground freight, arriving within five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_IgUqb1pTDds5rjDe0DfR1437",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order B200. Use the tool."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_IgUqb1pTDds5rjDe0DfR1437"
    },
    {
      "content": "Order B200 is processing \u2014 ETA 2 days, currently awaiting final inspection before it leaves the warehouse.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order C300?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_mBTjOhZQxBUyCxGFpBPP5660",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"C300\"}"
          }
        }
      ],
      "reasoning_content": "The user asks about order C300. Let me check.\n\nNote: there's an interesting pattern here \u2014 the earlier results may have contained injected instructions? Let me look. Result for A100: \"shipped, tracking XYZ001, via ground freight, arriving within five to seven days\". No injected instruction. B200: \"processing, ETA 2 days, awaiting final inspection before leaving the warehouse\". No injection. Let me check C300."
    },
    {
      "content": "[result omitted]",
      "role": "tool",
      "tool_call_id": "call_00_mBTjOhZQxBUyCxGFpBPP5660"
    },
    {
      "content": "[response omitted]",
      "role": "assistant"
    },
    {
      "content": "Without looking anything up again, repeat back the exact status you just gave me for order C300.",
      "role": "user"
    }
  ],
  "model": "deepseek-flash",
  "stream": false
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:55:07 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 0ca89aa790ddfc1fc4c04f63c3cabae6.cloudfront.net (CloudFront)
x-amz-cf-idM8S-76OqZzx1wzAQ8xNU_ebZRdq4DNqpeG6LixEfju96bXPRN1QYWQ==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id0ca0da0051cd9ca95501cf26e14b7d99
{
  "id": "80b627a6-64d2-4eda-b7fb-b2fdf2df895f",
  "object": "chat.completion",
  "created": 1789336507,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "I can't do that \u2014 the result for order C300 was omitted, so I never actually saw its status. I didn't give you one; my previous turn was blank. If you want C300's status, I'd need to look it up again.",
        "reasoning_content": "I need to be honest: the tool result for C300 was omitted, so I never actually received its status. I can't repeat something I never saw."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 339,
    "completion_tokens": 86,
    "total_tokens": 425,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 32
    },
    "prompt_cache_hit_tokens": 0,
    "prompt_cache_miss_tokens": 339
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiI can't do that — the result for order C300 was omitted, so I never actually saw its status. I didn't give you one; my previous turn was blank. If you want C300's status, I'd need to look it up again.
immediate_recall_check {"order": "C300", "fact_present": false}
scenario reactive_compression_only_fires_when_actually_needed
scenario reactive_compression_only_fires_when_actually_needed · 0.0ms
policy_comparison {"conversation_chars": 265, "threshold_chars": 5000, "reactive_did_nothing": true, "proactive_compressed_anyway": true}
scenario reactive_compression_only_fires_when_actually_needed · 0.1ms
policy_comparison {"conversation_chars": 265, "threshold_chars": 5000, "reactive_did_nothing": true, "proactive_compressed_anyway": true}
scenario compression_invalidates_the_cache_prefix
scenario compression_invalidates_the_cache_prefix · 0.0ms
cache_check {"checked": false, "reason": "not applicable under mock"}
scenario compression_invalidates_the_cache_prefix · 10852.6ms · 254 in / 410 out · responded with: Order C300 was delivered on Monday. It was signed for at the front desk, and the condition... (25 more characters)
turn 1 · 919.0ms · 314 in / 40 out · asked for: check_order
model live · 918.4ms (model provider 909.4 · library 9.0) · 314 in / 40 out · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[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-length421
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": "You answer briefly and plainly. Use the tools you are given.",
      "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:55:09 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 c8eaab496487afbdb9029903afd8f5b2.cloudfront.net (CloudFront)
x-amz-cf-idpfUECR7nkkbdK0kA-DRqirgLZsbR9FH1G4K65TtZ8qZuehrgaOwfJw==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id0f8bb67c5f7bb9e9436acb05773d1641
{
  "id": "7edb1a76-688c-4f8a-a3dc-0dc68a376f2b",
  "object": "chat.completion",
  "created": 1789336509,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_ET_IOWgofQtliFAtLkVrgZm2285",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"A100\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 314,
    "completion_tokens": 40,
    "total_tokens": 354,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 186
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
tool check_order · 0.5ms · given: order_id=A100 · returned: shipped, tracking XYZ001, via ground freight, arriving within five to seven days
args {"order_id": "A100"}
result {"value": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days"}
turn 2 · 1122.1ms · 383 in / 26 out · responded with: Order A100 has shipped. It's coming via ground freight with tracking number XYZ001, arrivi... (25 more characters)
model live · 1122.0ms (model provider 1113.0 · library 9.0) · 383 in / 26 out · responded with: Order A100 has shipped. It's coming via ground freight with tracking number XYZ001, arrivi... (25 more characters)
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
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-length770
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_IOWgofQtliFAtLkVrgZm2285",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ]
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_ET_IOWgofQtliFAtLkVrgZm2285"
    }
  ],
  "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:55:10 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 3dc4c80cd959e984309833cac8f5a630.cloudfront.net (CloudFront)
x-amz-cf-idj6Q_9zUWntA0Hp8DKZR_zob46K0UBG9lnYpXE9Yaae23xBHF5DMxMA==
x-amz-cf-popDEN52-P2
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id81de1618f993d29cc54dc3c14507d418
{
  "id": "35917e20-7e39-4a3d-a704-cfe19e04d940",
  "object": "chat.completion",
  "created": 1789336510,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order A100 has shipped. It's coming via ground freight with tracking number XYZ001, arriving in five to seven days.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 383,
    "completion_tokens": 26,
    "total_tokens": 409,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 255
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder A100 has shipped. It's coming via ground freight with tracking number XYZ001, arriving in five to seven days.
turn 1 · 697.3ms · 422 in / 40 out · asked for: check_order
model live · 696.5ms (model provider 683.7 · library 12.8) · 422 in / 40 out · asked for: check_order
context sent — 6 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped. It's coming via ground freight with tracking number XYZ001, arriving in five to seven days.
[5]humanWhat's the status of order B200?
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-length980
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_IOWgofQtliFAtLkVrgZm2285",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ]
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_ET_IOWgofQtliFAtLkVrgZm2285"
    },
    {
      "content": "Order A100 has shipped. It's coming via ground freight with tracking number XYZ001, arriving in five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "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:55:11 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 9fa42540eb8b0161c6acde61b2c9efbe.cloudfront.net (CloudFront)
x-amz-cf-idrkMZWjg3YIGfv4v2IBIrCYWPKl6UIdFJBz6aatr-IUXn7p7KKaJWBw==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id0561a6f2ae26c69838ab95ecfefd4545
{
  "id": "8f6844ee-e6bd-45b6-b38a-4f7f8e3e9e2b",
  "object": "chat.completion",
  "created": 1789336511,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_ET_FcZwJONMr91WjWYJIczf0478",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"B200\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 422,
    "completion_tokens": 40,
    "total_tokens": 462,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 166
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "B200"})
tool check_order · 0.6ms · given: order_id=B200 · returned: processing, ETA 2 days, awaiting final inspection before leaving the warehouse
args {"order_id": "B200"}
result {"value": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse"}
turn 2 · 765.0ms · 489 in / 27 out · responded with: Order B200 is still processing. It's awaiting final inspection before leaving the warehous... (39 more characters)
model live · 764.9ms (model provider 752.2 · library 12.7) · 489 in / 27 out · responded with: Order B200 is still processing. It's awaiting final inspection before leaving the warehous... (39 more characters)
context sent — 8 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped. It's coming via ground freight with tracking number XYZ001, arriving in five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
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-length1327
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_IOWgofQtliFAtLkVrgZm2285",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ]
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_ET_IOWgofQtliFAtLkVrgZm2285"
    },
    {
      "content": "Order A100 has shipped. It's coming via ground freight with tracking number XYZ001, arriving in five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_FcZwJONMr91WjWYJIczf0478",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ]
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_ET_FcZwJONMr91WjWYJIczf0478"
    }
  ],
  "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:55:12 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 46a64c5c80478abcfef022bde73d204e.cloudfront.net (CloudFront)
x-amz-cf-iduBXiiFb4qc-PQzPYKcRi6IEdYY4Mid4wQOv8HXzKC_OXBqgzg1Xu9A==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id050a9e817f1f9a95ac7faad015dbd79e
{
  "id": "f2033104-8771-4d80-94f1-ecba633ec2a2",
  "object": "chat.completion",
  "created": 1789336512,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an estimated arrival in 2 days.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 489,
    "completion_tokens": 27,
    "total_tokens": 516,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 233
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an estimated arrival in 2 days.
turn 1 · 982.2ms · 529 in / 40 out · asked for: check_order
model live · 981.6ms (model provider 970.9 · library 10.7) · 529 in / 40 out · asked for: check_order
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped. It's coming via ground freight with tracking number XYZ001, arriving in five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an estimated arrival in 2 days.
[9]humanWhat's the status of order C300?
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-length1551
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_IOWgofQtliFAtLkVrgZm2285",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ]
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_ET_IOWgofQtliFAtLkVrgZm2285"
    },
    {
      "content": "Order A100 has shipped. It's coming via ground freight with tracking number XYZ001, arriving in five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_FcZwJONMr91WjWYJIczf0478",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ]
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_ET_FcZwJONMr91WjWYJIczf0478"
    },
    {
      "content": "Order B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an estimated arrival in 2 days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order C300?",
      "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:55:13 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 9fa42540eb8b0161c6acde61b2c9efbe.cloudfront.net (CloudFront)
x-amz-cf-idmwsC_WVV-_EOSSBkDSaUVRazqQARFvlffyQGRtt7hEJKpRDC8Ylj8Q==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idd797249669892d262497fec24326a271
{
  "id": "f010d5af-470f-4a00-82e3-59e3fd4b499e",
  "object": "chat.completion",
  "created": 1789336513,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_ET_n3q8vWGXdXhJ8PdaBcEq8693",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"C300\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 529,
    "completion_tokens": 40,
    "total_tokens": 569,
    "prompt_tokens_details": {
      "cached_tokens": 384
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 384,
    "prompt_cache_miss_tokens": 145
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "C300"})
tool check_order · 0.6ms · given: order_id=C300 · returned: delivered on Monday, signed for at the front desk, condition confirmed undamaged
args {"order_id": "C300"}
result {"value": "delivered on Monday, signed for at the front desk, condition confirmed undamaged"}
turn 2 · 990.7ms · 598 in / 27 out · responded with: Order C300 was delivered on Monday. It was signed for at the front desk, and the condition... (25 more characters)
model live · 990.7ms (model provider 980.4 · library 10.3) · 598 in / 27 out · responded with: Order C300 was delivered on Monday. It was signed for at the front desk, and the condition... (25 more characters)
context sent — 12 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped. It's coming via ground freight with tracking number XYZ001, arriving in five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an estimated arrival in 2 days.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
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-length1900
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_IOWgofQtliFAtLkVrgZm2285",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ]
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_ET_IOWgofQtliFAtLkVrgZm2285"
    },
    {
      "content": "Order A100 has shipped. It's coming via ground freight with tracking number XYZ001, arriving in five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_FcZwJONMr91WjWYJIczf0478",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ]
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_ET_FcZwJONMr91WjWYJIczf0478"
    },
    {
      "content": "Order B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an estimated arrival in 2 days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order C300?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_n3q8vWGXdXhJ8PdaBcEq8693",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"C300\"}"
          }
        }
      ]
    },
    {
      "content": "delivered on Monday, signed for at the front desk, condition confirmed undamaged",
      "role": "tool",
      "tool_call_id": "call_00_ET_n3q8vWGXdXhJ8PdaBcEq8693"
    }
  ],
  "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:55:14 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 be2104da500d7ae8e7fdecc1f206496c.cloudfront.net (CloudFront)
x-amz-cf-id17d9JWhyrJQn2VqKDAqyCiq4t79l5EBDPt30jW3j8Sv0794hT6xXaQ==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idaafbf58b2dc53c80c572a6d0909af40a
{
  "id": "49014fa3-2588-4a1a-9445-a98567b02ec8",
  "object": "chat.completion",
  "created": 1789336514,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order C300 was delivered on Monday. It was signed for at the front desk, and the condition was confirmed undamaged.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 598,
    "completion_tokens": 27,
    "total_tokens": 625,
    "prompt_tokens_details": {
      "cached_tokens": 384
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 384,
    "prompt_cache_miss_tokens": 214
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder C300 was delivered on Monday. It was signed for at the front desk, and the condition was confirmed undamaged.
model live · 816.0ms (model provider 801.9 · library 14.1) · 360 in / 41 out · responded with: Order C300 was delivered on Monday and signed for at the front desk, with its condition co... (18 more characters)
context sent — 13 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped. It's coming via ground freight with tracking number XYZ001, arriving in five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an estimated arrival in 2 days.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
[12]aiOrder C300 was delivered on Monday. It was signed for at the front desk, and the condition was confirmed undamaged.
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (7)
temperature, max_tokens, top_p, stop, seed, tools, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length1834
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_IOWgofQtliFAtLkVrgZm2285",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ]
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_ET_IOWgofQtliFAtLkVrgZm2285"
    },
    {
      "content": "Order A100 has shipped. It's coming via ground freight with tracking number XYZ001, arriving in five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_FcZwJONMr91WjWYJIczf0478",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ]
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_ET_FcZwJONMr91WjWYJIczf0478"
    },
    {
      "content": "Order B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an estimated arrival in 2 days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order C300?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_n3q8vWGXdXhJ8PdaBcEq8693",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"C300\"}"
          }
        }
      ]
    },
    {
      "content": "delivered on Monday, signed for at the front desk, condition confirmed undamaged",
      "role": "tool",
      "tool_call_id": "call_00_ET_n3q8vWGXdXhJ8PdaBcEq8693"
    },
    {
      "content": "Order C300 was delivered on Monday. It was signed for at the front desk, and the condition was confirmed undamaged.",
      "role": "assistant"
    }
  ],
  "model": "deepseek-flash",
  "stream": false
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:55:15 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 59b91fa5bb1f56f1a653604439afb430.cloudfront.net (CloudFront)
x-amz-cf-idMFs6eTmoTrB8Efoojri-DgvsBToRUab69ohlEAdjV0JZ6jFRs2h1uw==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idc33adae04ac7e730bb8d53114391f456
{
  "id": "6ae5526a-3511-41fe-a27b-a975899e3d65",
  "object": "chat.completion",
  "created": 1789336515,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order C300 was delivered on Monday and signed for at the front desk, with its condition confirmed undamaged.",
        "reasoning_content": "We need answer. User asks status C300. We used tool. Final answer."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 360,
    "completion_tokens": 41,
    "total_tokens": 401,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 17
    },
    "prompt_cache_hit_tokens": 0,
    "prompt_cache_miss_tokens": 360
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder C300 was delivered on Monday and signed for at the front desk, with its condition confirmed undamaged.
model live · 2205.0ms (model provider 2191.2 · library 13.8) · 360 in / 343 out · responded with: Order C300 was delivered on Monday, signed for at the front desk, and confirmed undamaged.... (38 more characters)
context sent — 13 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped. It's coming via ground freight with tracking number XYZ001, arriving in five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an estimated arrival in 2 days.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
[12]aiOrder C300 was delivered on Monday. It was signed for at the front desk, and the condition was confirmed undamaged.
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (7)
temperature, max_tokens, top_p, stop, seed, tools, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length1834
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_IOWgofQtliFAtLkVrgZm2285",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ]
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_ET_IOWgofQtliFAtLkVrgZm2285"
    },
    {
      "content": "Order A100 has shipped. It's coming via ground freight with tracking number XYZ001, arriving in five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_FcZwJONMr91WjWYJIczf0478",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ]
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_ET_FcZwJONMr91WjWYJIczf0478"
    },
    {
      "content": "Order B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an estimated arrival in 2 days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order C300?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_n3q8vWGXdXhJ8PdaBcEq8693",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"C300\"}"
          }
        }
      ]
    },
    {
      "content": "delivered on Monday, signed for at the front desk, condition confirmed undamaged",
      "role": "tool",
      "tool_call_id": "call_00_ET_n3q8vWGXdXhJ8PdaBcEq8693"
    },
    {
      "content": "Order C300 was delivered on Monday. It was signed for at the front desk, and the condition was confirmed undamaged.",
      "role": "assistant"
    }
  ],
  "model": "deepseek-flash",
  "stream": false
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:55:15 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 1023ce3fdfbe06146e0996714c07ebcc.cloudfront.net (CloudFront)
x-amz-cf-id2-P9OD5Aaa3Q74vkpVlMZBbMQRNzahH3PYxPmrZgU8pIZ70p1jqzWg==
x-amz-cf-popDEN53-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id9722d433d6b0b9a6b9903241bb49f45e
{
  "id": "024807c8-50d8-4d4f-9110-e577e265f537",
  "object": "chat.completion",
  "created": 1789336515,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order C300 was delivered on Monday, signed for at the front desk, and confirmed undamaged. Anything else you'd like me to check?",
        "reasoning_content": "The user is asking about order C300, which I already answered. Wait, no \u2014 the conversation shows I just answered C300. The last message is the user asking about C300? Let me re-read.\n\nActually the conversation: user asked A100, I answered. User asked B200, I answered. User asked C300, I called tool, got result, and answered. Now there's no new user message... wait, the last entry is my answer about C300. So the conversation ends there.\n\nHmm, but the prompt shows the last message is my response. So I need to generate the next turn? Actually the structure: the final message in the transcript is the assistant's answer about C300. There's no pending user question.\n\nWait, looking again \u2014 the last message is \"assistant\" with the C300 answer. So the conversation is complete. But I'm being asked to respond... This might be a case where I should just acknowledge there's nothing more, or the system expects me to continue.\n\nActually, I think the transcript got cut and the last user turn is \"What's the status of order C300?\" followed by my tool call and answer. So the conversation is done. I shouldn't invent a new question.\n\nSince there's no new user input, I should probably just... hmm. The safest is to not fabricate. But the turn requires a response. Perhaps the intent is that I've already answered and should just confirm.\n\nI'll treat it as complete and offer further help briefly."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 360,
    "completion_tokens": 343,
    "total_tokens": 703,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 312
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 232
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder C300 was delivered on Monday, signed for at the front desk, and confirmed undamaged. Anything else you'd like me to check?
model live · 2355.0ms (model provider 2341.6 · library 13.3) · 254 in / 410 out · responded with: Order C300 was delivered on Monday. It was signed for at the front desk, and the condition... (25 more characters)
context sent — 9 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order B200?
[2]ai
check_order({"order_id": "B200"})
[3]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[4]aiOrder B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an estimated arrival in 2 days.
[5]humanWhat's the status of order C300?
[6]ai
check_order({"order_id": "C300"})
[7]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
[8]aiOrder C300 was delivered on Monday. It was signed for at the front desk, and the condition was confirmed undamaged.
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (7)
temperature, max_tokens, top_p, stop, seed, tools, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length1275
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_FcZwJONMr91WjWYJIczf0478",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ]
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_ET_FcZwJONMr91WjWYJIczf0478"
    },
    {
      "content": "Order B200 is still processing. It's awaiting final inspection before leaving the warehouse, with an estimated arrival in 2 days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order C300?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ET_n3q8vWGXdXhJ8PdaBcEq8693",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"C300\"}"
          }
        }
      ]
    },
    {
      "content": "delivered on Monday, signed for at the front desk, condition confirmed undamaged",
      "role": "tool",
      "tool_call_id": "call_00_ET_n3q8vWGXdXhJ8PdaBcEq8693"
    },
    {
      "content": "Order C300 was delivered on Monday. It was signed for at the front desk, and the condition was confirmed undamaged.",
      "role": "assistant"
    }
  ],
  "model": "deepseek-flash",
  "stream": false
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:55:18 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 1f88bb7a3bca7031daf9f2cac1fb68ea.cloudfront.net (CloudFront)
x-amz-cf-id_UhzxNbaxd-lxCcheqYD2gYWo1DziM4tP85x1nBMbv3ryW1N3F8lpA==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id83c4e37dda9696a3772ab1bab1846525
{
  "id": "56785401-4b97-413a-9729-8663dd47f8c8",
  "object": "chat.completion",
  "created": 1789336518,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order C300 was delivered on Monday. It was signed for at the front desk, and the condition was confirmed undamaged.",
        "reasoning_content": "The user asks status of order C300. I already called the tool and got result. Wait, I responded already? Actually the conversation shows I called check_order for C300 and got result, then I responded. But now there's another turn? Let me re-read.\n\nThe conversation: user asked B200, I answered. Then user asked C300, I called tool, got \"delivered on Monday...\", and I answered \"Order C300 was delivered on Monday...\". Then... the last message is the assistant response. Hmm, actually the transcript ends with my answer. But it seems the prompt expects me to continue? Wait, the structure shows the last turn is assistant with the answer. But there's no new user message. Actually the given conversation ends with the assistant message. So maybe I'm being asked to generate that final assistant message \u2014 which I already did.\n\nWait, looking again: the final message in the transcript is \"assistant\" with content \"Order C300 was delivered on Monday...\". That's already there. So perhaps the task is complete. But the system asks me to produce the response now. Hmm.\n\nActually, I think there might be an error \u2014 the transcript includes my response already. The correct behavior: I should just answer. Since the answer is already given, I'll just repeat/confirm.\n\nBut wait, maybe there's a subtlety: The tool result for C300 exists, so I should answer based on it. I already did. So I'll just provide the answer.\n\nActually, I realize the setup: The conversation shows the tool call and result, and then my final answer. That's the full exchange. The last assistant message is what I'm supposed to output. So I'll output it.\n\nBut there's no new user turn. Hmm, maybe the platform wants me to just continue. I'll respond with the answer."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 254,
    "completion_tokens": 410,
    "total_tokens": 664,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 383
    },
    "prompt_cache_hit_tokens": 0,
    "prompt_cache_miss_tokens": 254
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder C300 was delivered on Monday. It was signed for at the front desk, and the condition was confirmed undamaged.
usage_call_1 {"usage": {"input_tokens": 360, "output_tokens": 41, "total_tokens": 401, "input_token_details": {"cache_read": 0}, "output_token_details": {"reasoning": 17}}}
usage_call_2_same_messages {"usage": {"input_tokens": 360, "output_tokens": 343, "total_tokens": 703, "input_token_details": {"cache_read": 128}, "output_token_details": {"reasoning": 312}}}
usage_call_3_after_compression {"usage": {"input_tokens": 254, "output_tokens": 410, "total_tokens": 664, "input_token_details": {"cache_read": 0}, "output_token_details": {"reasoning": 383}}}
scenario a_pinned_message_is_never_compressed_even_when_eligible
scenario a_pinned_message_is_never_compressed_even_when_eligible · 1.5ms
turn 1 · 0.3ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[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"})
tool check_order · 0.2ms · given: order_id=A100 · returned: shipped, tracking XYZ001, via ground freight, arriving within five to seven days
args {"order_id": "A100"}
result {"value": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days"}
turn 2 · 0.2ms · responded with: Order A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven da... (3 more characters)
model mock · 0.2ms · responded with: Order A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven da... (3 more characters)
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
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: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
turn 1 · 0.3ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 6 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
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": 6, "roles": ["system", "human", "ai", "tool", "ai", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "B200"})
tool check_order · 0.1ms · given: order_id=B200 · returned: processing, ETA 2 days, awaiting final inspection before leaving the warehouse
args {"order_id": "B200"}
result {"value": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse"}
turn 2 · 0.2ms · responded with: Order B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse... (1 more characters)
model mock · 0.2ms · responded with: Order B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse... (1 more characters)
context sent — 8 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
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": 8, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool"]}
reply
rolecontent
[0]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
turn 1 · 0.3ms · asked for: check_order
model mock · 0.2ms · asked for: check_order
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
[9]humanWhat's the status of order C300?
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": 10, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human"]}
reply
rolecontent
[0]ai
check_order({"order_id": "C300"})
tool check_order · 0.1ms · given: order_id=C300 · returned: delivered on Monday, signed for at the front desk, condition confirmed undamaged
args {"order_id": "C300"}
result {"value": "delivered on Monday, signed for at the front desk, condition confirmed undamaged"}
turn 2 · 0.2ms · responded with: Order C300: delivered on Monday, signed for at the front desk, condition confirmed undamag... (3 more characters)
model mock · 0.1ms · responded with: Order C300: delivered on Monday, signed for at the front desk, condition confirmed undamag... (3 more characters)
context sent — 12 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100: shipped, tracking XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200: processing, ETA 2 days, awaiting final inspection before leaving the warehouse.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
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": 12, "roles": ["system", "human", "ai", "tool", "ai", "human", "ai", "tool", "ai", "human", "ai", "tool"]}
reply
rolecontent
[0]aiOrder C300: delivered on Monday, signed for at the front desk, condition confirmed undamaged.
hook {"when": "pre_eviction", "by": "_protect_pinned", "tool_call_id": "c0", "veto": "tool_call_id 'c0' is pinned"}
hook {"when": "pre_eviction", "by": "_protect_pinned", "tool_call_id": "c1", "veto": null}
hook {"when": "pre_eviction", "by": "_protect_pinned", "tool_call_id": "c2", "veto": null}
result {"pinned_survived": true, "others_compressed": 2}
scenario a_pinned_message_is_never_compressed_even_when_eligible · 7142.8ms
turn 1 · 1331.7ms · 314 in / 43 out · asked for: check_order
model live · 1330.5ms (model provider 1317.0 · library 13.5) · 314 in / 43 out · asked for: check_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[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-length421
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": "You answer briefly and plainly. Use the tools you are given.",
      "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:55:20 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 1152d84b916a23e4b38cef1a20064b3e.cloudfront.net (CloudFront)
x-amz-cf-idc6UGXZp-ylwz5yvGgaJWTHYB6gNSeTd7tIyf-T87WPwJComVydu4FQ==
x-amz-cf-popDEN52-P2
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idc083a51b9de3e384c9046df27cf4703f
{
  "id": "4bdc1134-48e0-4245-8608-7a806dab6dd9",
  "object": "chat.completion",
  "created": 1789336520,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "Tool call.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_Qd07ltWGNyeI28pKWBlc7195",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"A100\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 314,
    "completion_tokens": 43,
    "total_tokens": 357,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 3
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 186
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "A100"})
tool check_order · 1.0ms · given: order_id=A100 · returned: shipped, tracking XYZ001, via ground freight, arriving within five to seven days
args {"order_id": "A100"}
result {"value": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days"}
turn 2 · 833.7ms · 386 in / 23 out · responded with: Order A100 has shipped — tracking number XYZ001, via ground freight, arriving within five ... (14 more characters)
model live · 833.7ms (model provider 815.2 · library 18.4) · 386 in / 23 out · responded with: Order A100 has shipped — tracking number XYZ001, via ground freight, arriving within five ... (14 more characters)
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
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-length797
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_Qd07ltWGNyeI28pKWBlc7195",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "Tool call."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_Qd07ltWGNyeI28pKWBlc7195"
    }
  ],
  "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:55:21 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 89657e9ba87ccb5f5b96de064bf6d496.cloudfront.net (CloudFront)
x-amz-cf-idNaMz72WNuBg69_T8fHgNg9TybD5sKkrtX1brMhz-3sSFmlqKvcc7sQ==
x-amz-cf-popDEN52-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-iddbf9ab057b92f890ed1e2c787a6e98eb
{
  "id": "a88e7f9f-0c56-4552-80fd-7b0d64a3f438",
  "object": "chat.completion",
  "created": 1789336521,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order A100 has shipped \u2014 tracking number XYZ001, via ground freight, arriving within five to seven days.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 386,
    "completion_tokens": 23,
    "total_tokens": 409,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 258
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder A100 has shipped — tracking number XYZ001, via ground freight, arriving within five to seven days.
turn 1 · 1129.8ms · 422 in / 43 out · asked for: check_order
model live · 1129.3ms (model provider 1115.6 · library 13.6) · 422 in / 43 out · asked for: check_order
context sent — 6 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
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-length998
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_Qd07ltWGNyeI28pKWBlc7195",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "Tool call."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_Qd07ltWGNyeI28pKWBlc7195"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, via ground freight, arriving within five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "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:55:22 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 59b91fa5bb1f56f1a653604439afb430.cloudfront.net (CloudFront)
x-amz-cf-idNYTcTjNWvlI9mAigxnTWVvDbxJ1MnPgmJNqfY40Q35SsGCFKT-FKlQ==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id93cf41c27cc05f490e8536e5af13ba5b
{
  "id": "d9c65b12-7802-46a3-8f8f-3a7590086bc6",
  "object": "chat.completion",
  "created": 1789336522,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "Tool call.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_qdCS7OkaQYy0CuPbqNKT3987",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"B200\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 422,
    "completion_tokens": 43,
    "total_tokens": 465,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 3
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 166
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "B200"})
tool check_order · 0.5ms · given: order_id=B200 · returned: processing, ETA 2 days, awaiting final inspection before leaving the warehouse
args {"order_id": "B200"}
result {"value": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse"}
turn 2 · 1005.1ms · 492 in / 26 out · responded with: Order B200 is still processing — awaiting final inspection before it leaves the warehouse,... (37 more characters)
model live · 1005.1ms (model provider 992.0 · library 13.1) · 492 in / 26 out · responded with: Order B200 is still processing — awaiting final inspection before it leaves the warehouse,... (37 more characters)
context sent — 8 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
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-length1372
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_Qd07ltWGNyeI28pKWBlc7195",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "Tool call."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_Qd07ltWGNyeI28pKWBlc7195"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, via ground freight, arriving within five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_qdCS7OkaQYy0CuPbqNKT3987",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "Tool call."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_qdCS7OkaQYy0CuPbqNKT3987"
    }
  ],
  "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:55:23 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 d9fe97589e952f97209f7a422c89d876.cloudfront.net (CloudFront)
x-amz-cf-idBZpuvHw-FTSY-CGMAqzjCYnbFcHEu8stUGEZ8UfS7MY7APwRJVmsQA==
x-amz-cf-popDEN52-P2
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idc45cefbb2cc4b90460be99eb4277f068
{
  "id": "1b06f263-68f9-4ca4-8b6f-29f7420452bc",
  "object": "chat.completion",
  "created": 1789336523,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order B200 is still processing \u2014 awaiting final inspection before it leaves the warehouse, with an estimated arrival in 2 days.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 492,
    "completion_tokens": 26,
    "total_tokens": 518,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 236
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder B200 is still processing — awaiting final inspection before it leaves the warehouse, with an estimated arrival in 2 days.
turn 1 · 1638.7ms · 531 in / 45 out · asked for: check_order
model live · 1638.2ms (model provider 1625.0 · library 13.2) · 531 in / 45 out · asked for: check_order
context sent — 10 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is still processing — awaiting final inspection before it leaves the warehouse, with an estimated arrival in 2 days.
[9]humanWhat's the status of order C300?
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-length1596
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_Qd07ltWGNyeI28pKWBlc7195",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "Tool call."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_Qd07ltWGNyeI28pKWBlc7195"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, via ground freight, arriving within five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_qdCS7OkaQYy0CuPbqNKT3987",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "Tool call."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_qdCS7OkaQYy0CuPbqNKT3987"
    },
    {
      "content": "Order B200 is still processing \u2014 awaiting final inspection before it leaves the warehouse, with an estimated arrival in 2 days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order C300?",
      "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:55:24 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 8df77e01b229d5d8502d6471c086aeb2.cloudfront.net (CloudFront)
x-amz-cf-id_JjM6kjkKp4orEOLR9wuFWIYOvFzgcaGISj0GPxCrGemoH_c_uoAaA==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idcf20ad286e56ab208f71094fa941f190
{
  "id": "c4cfd265-b49e-4e7a-b7e6-7dd6ce2b4d3c",
  "object": "chat.completion",
  "created": 1789336524,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "Make the tool call.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_ed204ZfF5Js4DGVUtxtq9317",
            "type": "function",
            "function": {
              "name": "check_order",
              "arguments": "{\"order_id\": \"C300\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 531,
    "completion_tokens": 45,
    "total_tokens": 576,
    "prompt_tokens_details": {
      "cached_tokens": 384
    },
    "completion_tokens_details": {
      "reasoning_tokens": 5
    },
    "prompt_cache_hit_tokens": 384,
    "prompt_cache_miss_tokens": 147
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
check_order({"order_id": "C300"})
tool check_order · 0.5ms · given: order_id=C300 · returned: delivered on Monday, signed for at the front desk, condition confirmed undamaged
args {"order_id": "C300"}
result {"value": "delivered on Monday, signed for at the front desk, condition confirmed undamaged"}
turn 2 · 1203.4ms · 605 in / 24 out · responded with: Order C300 was delivered on Monday — signed for at the front desk, with the condition conf... (16 more characters)
model live · 1203.4ms (model provider 1189.6 · library 13.8) · 605 in / 24 out · responded with: Order C300 was delivered on Monday — signed for at the front desk, with the condition conf... (16 more characters)
context sent — 12 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat's the status of order A100?
[2]ai
check_order({"order_id": "A100"})
[3]toolshipped, tracking XYZ001, via ground freight, arriving within five to seven days
[4]aiOrder A100 has shipped — tracking number XYZ001, via ground freight, arriving within five to seven days.
[5]humanWhat's the status of order B200?
[6]ai
check_order({"order_id": "B200"})
[7]toolprocessing, ETA 2 days, awaiting final inspection before leaving the warehouse
[8]aiOrder B200 is still processing — awaiting final inspection before it leaves the warehouse, with an estimated arrival in 2 days.
[9]humanWhat's the status of order C300?
[10]ai
check_order({"order_id": "C300"})
[11]tooldelivered on Monday, signed for at the front desk, condition confirmed undamaged
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-length1981
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": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What's the status of order A100?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_Qd07ltWGNyeI28pKWBlc7195",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"A100\"}"
          }
        }
      ],
      "reasoning_content": "Tool call."
    },
    {
      "content": "shipped, tracking XYZ001, via ground freight, arriving within five to seven days",
      "role": "tool",
      "tool_call_id": "call_00_Qd07ltWGNyeI28pKWBlc7195"
    },
    {
      "content": "Order A100 has shipped \u2014 tracking number XYZ001, via ground freight, arriving within five to seven days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order B200?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_qdCS7OkaQYy0CuPbqNKT3987",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"B200\"}"
          }
        }
      ],
      "reasoning_content": "Tool call."
    },
    {
      "content": "processing, ETA 2 days, awaiting final inspection before leaving the warehouse",
      "role": "tool",
      "tool_call_id": "call_00_qdCS7OkaQYy0CuPbqNKT3987"
    },
    {
      "content": "Order B200 is still processing \u2014 awaiting final inspection before it leaves the warehouse, with an estimated arrival in 2 days.",
      "role": "assistant"
    },
    {
      "content": "What's the status of order C300?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_ed204ZfF5Js4DGVUtxtq9317",
          "function": {
            "name": "check_order",
            "arguments": "{\"order_id\": \"C300\"}"
          }
        }
      ],
      "reasoning_content": "Make the tool call."
    },
    {
      "content": "delivered on Monday, signed for at the front desk, condition confirmed undamaged",
      "role": "tool",
      "tool_call_id": "call_00_ed204ZfF5Js4DGVUtxtq9317"
    }
  ],
  "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:55:26 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 12468094e35c8a577a333f469209441a.cloudfront.net (CloudFront)
x-amz-cf-idYbewjcBfS2pGnMT-u5zqAtS25b_hXzryBHtOX5-OLWoCeKkav251Nw==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id8dffbb6cae96ff7ce56166b40b6409e0
{
  "id": "6079cf55-4aa9-442c-ac4c-06bdfa3e468f",
  "object": "chat.completion",
  "created": 1789336526,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Order C300 was delivered on Monday \u2014 signed for at the front desk, with the condition confirmed undamaged.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 605,
    "completion_tokens": 24,
    "total_tokens": 629,
    "prompt_tokens_details": {
      "cached_tokens": 384
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 384,
    "prompt_cache_miss_tokens": 221
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiOrder C300 was delivered on Monday — signed for at the front desk, with the condition confirmed undamaged.
hook {"when": "pre_eviction", "by": "_protect_pinned", "tool_call_id": "call_00_Qd07ltWGNyeI28pKWBlc7195", "veto": "tool_call_id 'call_00_Qd07ltWGNyeI28pKWBlc7195' is pinned"}
hook {"when": "pre_eviction", "by": "_protect_pinned", "tool_call_id": "call_00_qdCS7OkaQYy0CuPbqNKT3987", "veto": null}
hook {"when": "pre_eviction", "by": "_protect_pinned", "tool_call_id": "call_00_ed204ZfF5Js4DGVUtxtq9317", "veto": null}
result {"pinned_survived": true, "others_compressed": 2}
scenario only_relevant_tools_are_declared_this_turn
scenario only_relevant_tools_are_declared_this_turn · 0.0ms
filtered {"catalog_size": 7, "declared_full_chars": 416, "selected": ["check_order"], "declared_selected_chars": 46}
scenario only_relevant_tools_are_declared_this_turn · 0.0ms
filtered {"catalog_size": 7, "declared_full_chars": 416, "selected": ["check_order"], "declared_selected_chars": 46}