ch20_loop_veto

show:
mock turns=6 · messages=15
live turns=3 · messages=11
scenario hard_stop_ends_the_run_immediately
scenario hard_stop_ends_the_run_immediately · 3.3ms · 2 turns · ended: vetoed
turn 1 · 2.8ms · asked for: place_order
model mock · 2.8ms · asked for: place_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanOrder 8 bottles of milk, then order 8 more.
declared tools (1)
tooldescriptionschema
place_orderOrder a quantity of an item.{"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"}
tools declared to the mock model {"names": ["place_order"], "consulted": false}
context ignored by the mock model {"messages": 2, "roles": ["system", "human"]}
reply
rolecontent
[0]ai
place_order({"item": "milk", "quantity": 8})
tool place_order · 0.0ms · given: item=milk, quantity=8 · returned: ordered 8 x milk
args {"item": "milk", "quantity": 8}
hook {"when": "pre", "by": "refuse_if_over_budget", "note": null, "veto": null, "replacement": null}
dispatched {"value": "ordered 8 x milk"}
hook {"when": "post", "by": "record_the_order", "note": "total_ordered now 8", "veto": null, "replacement": null}
result {"value": "ordered 8 x milk"}
turn 2 · 0.3ms · asked for: place_order
model mock · 0.3ms · asked for: place_order
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanOrder 8 bottles of milk, then order 8 more.
[2]ai
place_order({"item": "milk", "quantity": 8})
[3]toolordered 8 x milk
declared tools (1)
tooldescriptionschema
place_orderOrder a quantity of an item.{"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"}
tools declared to the mock model {"names": ["place_order"], "consulted": false}
context ignored by the mock model {"messages": 4, "roles": ["system", "human", "ai", "tool"]}
reply
rolecontent
[0]ai
place_order({"item": "milk", "quantity": 8})
tool place_order · 0.0ms · given: item=milk, quantity=8
args {"item": "milk", "quantity": 8}
hook {"when": "pre", "by": "refuse_if_over_budget", "note": null, "veto": "8 already ordered this run; 8 more would be 16, over the budget of 12", "replacement": null}
ended {"reason": "vetoed"}
scenario hard_stop_ends_the_run_immediately · 2023.1ms · 1 turn · ended: vetoed
turn 1 · 2022.9ms · 344 in / 176 out · asked for: place_order, place_order
model live · 2022.8ms (model provider 1786.6 · library 236.2) · 344 in / 176 out · asked for: place_order, place_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanOrder 8 bottles of milk, then order 8 more.
declared tools (1)
tooldescriptionschema
place_orderOrder a quantity of an item.{"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_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-length499
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": "Order 8 bottles of milk, then order 8 more.",
      "role": "user"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "place_order",
        "description": "Order a quantity of an item.",
        "parameters": {
          "properties": {
            "item": {
              "enum": [
                "bread",
                "butter",
                "chips",
                "milk"
              ],
              "type": "string"
            },
            "quantity": {
              "type": "integer"
            }
          },
          "required": [
            "item",
            "quantity"
          ],
          "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:53:17 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 9d0c0f607ed2753212b70ce75683881e.cloudfront.net (CloudFront)
x-amz-cf-idhyThRlFOVrhIqlgNhQyoMOrctk8xIrAUGa1RDeEaOrlR-5AuT3xvMw==
x-amz-cf-popDEN53-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idbaec9b03c5eca1f64fcfe7e4d09b7a76
{
  "id": "1fd23989-0ec4-4eeb-85c3-b0a23b0d1b59",
  "object": "chat.completion",
  "created": 1789336397,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "Simple: place order milk 8, then another milk 8. These are independent? The second order depends on the first? Not really\u2014both are same, could be parallel. But instruction says \"then\" so sequential. I'll just call both in one block; they're independent calls.\n\nActually let me just do them sequentially in one block\u2014allowed since no dependencies.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_VCV5WP0lriKlSrrHccCB3066",
            "type": "function",
            "function": {
              "name": "place_order",
              "arguments": "{\"item\": \"milk\", \"quantity\": 8}"
            }
          },
          {
            "index": 1,
            "id": "call_01_T52vtMRfQQRJpwf0EubJ3489",
            "type": "function",
            "function": {
              "name": "place_order",
              "arguments": "{\"item\": \"milk\", \"quantity\": 8}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 344,
    "completion_tokens": 176,
    "total_tokens": 520,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 76
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 216
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
place_order({"item": "milk", "quantity": 8})
place_order({"item": "milk", "quantity": 8})
tool place_order · 0.0ms · given: item=milk, quantity=8 · returned: ordered 8 x milk
args {"item": "milk", "quantity": 8}
hook {"when": "pre", "by": "refuse_if_over_budget", "note": null, "veto": null, "replacement": null}
dispatched {"value": "ordered 8 x milk"}
hook {"when": "post", "by": "record_the_order", "note": "total_ordered now 8", "veto": null, "replacement": null}
result {"value": "ordered 8 x milk"}
tool place_order · 0.0ms · given: item=milk, quantity=8
args {"item": "milk", "quantity": 8}
hook {"when": "pre", "by": "refuse_if_over_budget", "note": null, "veto": "8 already ordered this run; 8 more would be 16, over the budget of 12", "replacement": null}
ended {"reason": "vetoed"}
scenario soft_continue_lets_the_model_try_again
scenario soft_continue_lets_the_model_try_again · 0.9ms · 4 turns · ended: no_tool_calls
turn 1 · 0.3ms · asked for: place_order
model mock · 0.2ms · asked for: place_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanOrder 8 bottles of milk, then order 8 more.
declared tools (1)
tooldescriptionschema
place_orderOrder a quantity of an item.{"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"}
tools declared to the mock model {"names": ["place_order"], "consulted": false}
context ignored by the mock model {"messages": 2, "roles": ["system", "human"]}
reply
rolecontent
[0]ai
place_order({"item": "milk", "quantity": 8})
tool place_order · 0.0ms · given: item=milk, quantity=8 · returned: ordered 8 x milk
args {"item": "milk", "quantity": 8}
hook {"when": "pre", "by": "refuse_if_over_budget", "note": null, "veto": null, "replacement": null}
dispatched {"value": "ordered 8 x milk"}
hook {"when": "post", "by": "record_the_order", "note": "total_ordered now 8", "veto": null, "replacement": null}
result {"value": "ordered 8 x milk"}
turn 2 · 0.2ms · asked for: place_order
model mock · 0.2ms · asked for: place_order
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanOrder 8 bottles of milk, then order 8 more.
[2]ai
place_order({"item": "milk", "quantity": 8})
[3]toolordered 8 x milk
declared tools (1)
tooldescriptionschema
place_orderOrder a quantity of an item.{"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"}
tools declared to the mock model {"names": ["place_order"], "consulted": false}
context ignored by the mock model {"messages": 4, "roles": ["system", "human", "ai", "tool"]}
reply
rolecontent
[0]ai
place_order({"item": "milk", "quantity": 8})
tool place_order · 0.0ms · given: item=milk, quantity=8
args {"item": "milk", "quantity": 8}
hook {"when": "pre", "by": "refuse_if_over_budget", "note": null, "veto": "8 already ordered this run; 8 more would be 16, over the budget of 12", "replacement": null}
turn 3 · 0.2ms · asked for: place_order
model mock · 0.2ms · asked for: place_order
context sent — 6 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanOrder 8 bottles of milk, then order 8 more.
[2]ai
place_order({"item": "milk", "quantity": 8})
[3]toolordered 8 x milk
[4]ai
place_order({"item": "milk", "quantity": 8})
[5]tool['place_order'] blocked before it ran: 8 already ordered this run; 8 more would be 16, over the budget of 12
declared tools (1)
tooldescriptionschema
place_orderOrder a quantity of an item.{"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"}
tools declared to the mock model {"names": ["place_order"], "consulted": false}
context ignored by the mock model {"messages": 6, "roles": ["system", "human", "ai", "tool", "ai", "tool"]}
reply
rolecontent
[0]ai
place_order({"item": "milk", "quantity": 4})
tool place_order · 0.0ms · given: item=milk, quantity=4 · returned: ordered 4 x milk
args {"item": "milk", "quantity": 4}
hook {"when": "pre", "by": "refuse_if_over_budget", "note": null, "veto": null, "replacement": null}
dispatched {"value": "ordered 4 x milk"}
hook {"when": "post", "by": "record_the_order", "note": "total_ordered now 12", "veto": null, "replacement": null}
result {"value": "ordered 4 x milk"}
turn 4 · 0.2ms · responded with: Ordered 8, then 4 more after the second 8 was refused -- 12 in total, at the limit.
model mock · 0.2ms · responded with: Ordered 8, then 4 more after the second 8 was refused -- 12 in total, at the limit.
context sent — 8 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanOrder 8 bottles of milk, then order 8 more.
[2]ai
place_order({"item": "milk", "quantity": 8})
[3]toolordered 8 x milk
[4]ai
place_order({"item": "milk", "quantity": 8})
[5]tool['place_order'] blocked before it ran: 8 already ordered this run; 8 more would be 16, over the budget of 12
[6]ai
place_order({"item": "milk", "quantity": 4})
[7]toolordered 4 x milk
declared tools (1)
tooldescriptionschema
place_orderOrder a quantity of an item.{"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"}
tools declared to the mock model {"names": ["place_order"], "consulted": false}
context ignored by the mock model {"messages": 8, "roles": ["system", "human", "ai", "tool", "ai", "tool", "ai", "tool"]}
reply
rolecontent
[0]aiOrdered 8, then 4 more after the second 8 was refused -- 12 in total, at the limit.
ended {"reason": "no_tool_calls"}
scenario soft_continue_lets_the_model_try_again · 2261.0ms · 2 turns · ended: no_tool_calls
turn 1 · 1449.7ms · 344 in / 216 out · asked for: place_order, place_order
model live · 1449.6ms (model provider 1440.7 · library 8.8) · 344 in / 216 out · asked for: place_order, place_order
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanOrder 8 bottles of milk, then order 8 more.
declared tools (1)
tooldescriptionschema
place_orderOrder a quantity of an item.{"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_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-length499
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": "Order 8 bottles of milk, then order 8 more.",
      "role": "user"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "place_order",
        "description": "Order a quantity of an item.",
        "parameters": {
          "properties": {
            "item": {
              "enum": [
                "bread",
                "butter",
                "chips",
                "milk"
              ],
              "type": "string"
            },
            "quantity": {
              "type": "integer"
            }
          },
          "required": [
            "item",
            "quantity"
          ],
          "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:53:18 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 96971091469e558c8f8e351ccf0d7212.cloudfront.net (CloudFront)
x-amz-cf-idG3HOIuiZMwt7n0DCtODm39opW4wCykV1ZPjTiRplA0KSqVSY5-7H2w==
x-amz-cf-popDEN52-P2
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idc03f93256b623514795959cacbe78c56
{
  "id": "3e4f7ccf-13fe-4a38-bc05-c7f6fe94860a",
  "object": "chat.completion",
  "created": 1789336398,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user wants to order 8 bottles of milk, then 8 more. Straightforward. Two calls, dependent order (sequential). I can call both in the same block since they're independent... though \"then\" suggests sequence, but no dependency. Best to do both.\n\nActually, let me just do the first, then the second? The instruction says if no dependencies, make all independent calls in same block. There's no dependency, so both in one block.\n\nBut \"then\" implies order matters. Still no data dependency. I'll do both in one block.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_VxAmcwMTzCX78uRqxyXH9982",
            "type": "function",
            "function": {
              "name": "place_order",
              "arguments": "{\"item\": \"milk\", \"quantity\": 8}"
            }
          },
          {
            "index": 1,
            "id": "call_01_XsUfzNW17MxGXvMSJoDz2906",
            "type": "function",
            "function": {
              "name": "place_order",
              "arguments": "{\"item\": \"milk\", \"quantity\": 8}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 344,
    "completion_tokens": 216,
    "total_tokens": 560,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 116
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 216
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
place_order({"item": "milk", "quantity": 8})
place_order({"item": "milk", "quantity": 8})
tool place_order · 0.0ms · given: item=milk, quantity=8 · returned: ordered 8 x milk
args {"item": "milk", "quantity": 8}
hook {"when": "pre", "by": "refuse_if_over_budget", "note": null, "veto": null, "replacement": null}
dispatched {"value": "ordered 8 x milk"}
hook {"when": "post", "by": "record_the_order", "note": "total_ordered now 8", "veto": null, "replacement": null}
result {"value": "ordered 8 x milk"}
tool place_order · 0.0ms · given: item=milk, quantity=8
args {"item": "milk", "quantity": 8}
hook {"when": "pre", "by": "refuse_if_over_budget", "note": null, "veto": "8 already ordered this run; 8 more would be 16, over the budget of 12", "replacement": null}
turn 2 · 811.3ms · 615 in / 57 out · responded with: I ordered 8 bottles of milk. The second order of 8 was blocked — it would bring the total ... (86 more characters)
model live · 811.2ms (model provider 803.3 · library 7.9) · 615 in / 57 out · responded with: I ordered 8 bottles of milk. The second order of 8 was blocked — it would bring the total ... (86 more characters)
context sent — 5 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanOrder 8 bottles of milk, then order 8 more.
[2]ai
place_order({"item": "milk", "quantity": 8})
place_order({"item": "milk", "quantity": 8})
[3]toolordered 8 x milk
[4]tool['place_order'] blocked before it ran: 8 already ordered this run; 8 more would be 16, over the budget of 12
declared tools (1)
tooldescriptionschema
place_orderOrder a quantity of an item.{"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_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-length1670
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": "Order 8 bottles of milk, then order 8 more.",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_VxAmcwMTzCX78uRqxyXH9982",
          "function": {
            "name": "place_order",
            "arguments": "{\"item\": \"milk\", \"quantity\": 8}"
          }
        },
        {
          "type": "function",
          "id": "call_01_XsUfzNW17MxGXvMSJoDz2906",
          "function": {
            "name": "place_order",
            "arguments": "{\"item\": \"milk\", \"quantity\": 8}"
          }
        }
      ],
      "reasoning_content": "The user wants to order 8 bottles of milk, then 8 more. Straightforward. Two calls, dependent order (sequential). I can call both in the same block since they're independent... though \"then\" suggests sequence, but no dependency. Best to do both.\n\nActually, let me just do the first, then the second? The instruction says if no dependencies, make all independent calls in same block. There's no dependency, so both in one block.\n\nBut \"then\" implies order matters. Still no data dependency. I'll do both in one block."
    },
    {
      "content": "ordered 8 x milk",
      "role": "tool",
      "tool_call_id": "call_00_VxAmcwMTzCX78uRqxyXH9982"
    },
    {
      "content": "['place_order'] blocked before it ran: 8 already ordered this run; 8 more would be 16, over the budget of 12",
      "role": "tool",
      "tool_call_id": "call_01_XsUfzNW17MxGXvMSJoDz2906"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "place_order",
        "description": "Order a quantity of an item.",
        "parameters": {
          "properties": {
            "item": {
              "enum": [
                "bread",
                "butter",
                "chips",
                "milk"
              ],
              "type": "string"
            },
            "quantity": {
              "type": "integer"
            }
          },
          "required": [
            "item",
            "quantity"
          ],
          "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:53:20 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-id9WXHluMWTafmZfR32ZhfZbkdQYR9A9wyTw3mMIbYtgkffQCXE_4rLg==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id6762ebb6db66a3a250d197f8ca9ff89b
{
  "id": "a9cfe61f-bc1b-4882-9911-10fc71349a65",
  "object": "chat.completion",
  "created": 1789336400,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "I ordered 8 bottles of milk. The second order of 8 was blocked \u2014 it would bring the total to 16, over the limit of 12 per run. Let me know if you'd like a smaller second order.",
        "reasoning_content": "The second order was blocked. Report plainly."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 615,
    "completion_tokens": 57,
    "total_tokens": 672,
    "prompt_tokens_details": {
      "cached_tokens": 384
    },
    "completion_tokens_details": {
      "reasoning_tokens": 9
    },
    "prompt_cache_hit_tokens": 384,
    "prompt_cache_miss_tokens": 231
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiI ordered 8 bottles of milk. The second order of 8 was blocked — it would bring the total to 16, over the limit of 12 per run. Let me know if you'd like a smaller second order.
ended {"reason": "no_tool_calls"}