| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | How much is milk? |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | price_of({"item": "milk"}) |
| accept | */* |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| host | httpbin.org |
| user-agent | python-httpx/0.28.1 |
null| content-length | 0 |
| content-type | text/plain; charset=utf-8 |
| retry-after | 1 |
null| accept | */* |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| host | httpbin.org |
| user-agent | python-httpx/0.28.1 |
null| content-length | 39 |
| content-type | application/json |
{
"args": {
"item": "milk"
},
"price": "1.20"
}| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | How much is milk? |
| [2] | ai | price_of({"item": "milk"}) |
| [3] | tool | 1.20 |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | Milk is 1.20. |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | How much is milk? |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 766 |
| content-type | application/json |
| host | api.deepseek.com |
| user-agent | OpenAI/Python 3.6.0 |
| x-stainless-arch | arm64 |
| x-stainless-async | false |
| x-stainless-lang | python |
| x-stainless-os | MacOS |
| x-stainless-package-version | 3.6.0 |
| x-stainless-raw-response | true |
| x-stainless-read-timeout | 60.0 |
| x-stainless-retry-count | 0 |
| x-stainless-runtime | CPython |
| x-stainless-runtime-version | 3.14.7 |
{
"messages": [
{
"content": "You answer briefly and plainly. Use the tools you are given.",
"role": "system"
},
{
"content": "How much is milk?",
"role": "user"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "place_order",
"description": "Order a quantity of an item. Placing an order twice orders it twice.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
},
"quantity": {
"type": "integer"
}
},
"required": [
"item",
"quantity"
],
"type": "object"
}
}
},
{
"type": "function",
"function": {
"name": "price_of",
"description": "The current shelf price of one of an item, in pounds.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
}
},
"required": [
"item"
],
"type": "object"
}
}
}
]
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:52:02 GMT |
| server | elb |
| strict-transport-security | max-age=31536000; includeSubDomains; preload |
| transfer-encoding | chunked |
| vary | origin, access-control-request-method, access-control-request-headers |
| via | 1.1 6375c26956bc0f0a63d43a140369a4b0.cloudfront.net (CloudFront) |
| x-amz-cf-id | q_d_Vw9Yg-zCzN1gtcsZ6RVkGk_Pvh6T2XVOm18hzvGiRlICTU0GbQ== |
| x-amz-cf-pop | DEN53-P4 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | 407030b8d800edc1a8630fac2bcdd4a2 |
{
"id": "f212178a-8a29-45ac-aaa3-7d97e29eacc1",
"object": "chat.completion",
"created": 1789336322,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "",
"reasoning_content": "",
"tool_calls": [
{
"index": 0,
"id": "call_00_ET_A9rAcO8Ca5BLjkVV8E0x7978",
"type": "function",
"function": {
"name": "price_of",
"arguments": "{\"item\": \"milk\"}"
}
}
]
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 416,
"completion_tokens": 39,
"total_tokens": 455,
"prompt_tokens_details": {
"cached_tokens": 256
},
"completion_tokens_details": {
"reasoning_tokens": 0
},
"prompt_cache_hit_tokens": 256,
"prompt_cache_miss_tokens": 160
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | price_of({"item": "milk"}) |
| accept | */* |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| host | httpbin.org |
| user-agent | python-httpx/0.28.1 |
null| access-control-allow-credentials | true |
| access-control-allow-origin | * |
| connection | keep-alive |
| content-length | 0 |
| content-type | text/html; charset=utf-8 |
| date | Sun, 13 Sep 2026 21:52:03 GMT |
| server | gunicorn/19.9.0 |
null| accept | */* |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| host | httpbin.org |
| user-agent | python-httpx/0.28.1 |
null| access-control-allow-credentials | true |
| access-control-allow-origin | * |
| connection | keep-alive |
| content-length | 390 |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:52:03 GMT |
| server | gunicorn/19.9.0 |
{
"args": {
"item": "milk"
},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate, zstd",
"Authorization": "Bearer primer-demo-key",
"Host": "httpbin.org",
"User-Agent": "python-httpx/0.28.1",
"X-Amzn-Trace-Id": "Root=1-6aa71b03-230aab01066b7d8920513e73"
},
"origin": "71.218.120.63",
"url": "https://httpbin.org/get?item=milk"
}| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | How much is milk? |
| [2] | ai | price_of({"item": "milk"}) |
| [3] | tool | 1.20 |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 1032 |
| content-type | application/json |
| host | api.deepseek.com |
| user-agent | OpenAI/Python 3.6.0 |
| x-stainless-arch | arm64 |
| x-stainless-async | false |
| x-stainless-lang | python |
| x-stainless-os | MacOS |
| x-stainless-package-version | 3.6.0 |
| x-stainless-raw-response | true |
| x-stainless-read-timeout | 60.0 |
| x-stainless-retry-count | 0 |
| x-stainless-runtime | CPython |
| x-stainless-runtime-version | 3.14.7 |
{
"messages": [
{
"content": "You answer briefly and plainly. Use the tools you are given.",
"role": "system"
},
{
"content": "How much is milk?",
"role": "user"
},
{
"content": null,
"role": "assistant",
"tool_calls": [
{
"type": "function",
"id": "call_00_ET_A9rAcO8Ca5BLjkVV8E0x7978",
"function": {
"name": "price_of",
"arguments": "{\"item\": \"milk\"}"
}
}
]
},
{
"content": "1.20",
"role": "tool",
"tool_call_id": "call_00_ET_A9rAcO8Ca5BLjkVV8E0x7978"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "place_order",
"description": "Order a quantity of an item. Placing an order twice orders it twice.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
},
"quantity": {
"type": "integer"
}
},
"required": [
"item",
"quantity"
],
"type": "object"
}
}
},
{
"type": "function",
"function": {
"name": "price_of",
"description": "The current shelf price of one of an item, in pounds.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
}
},
"required": [
"item"
],
"type": "object"
}
}
}
]
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:52:04 GMT |
| server | elb |
| strict-transport-security | max-age=31536000; includeSubDomains; preload |
| transfer-encoding | chunked |
| vary | origin, access-control-request-method, access-control-request-headers |
| via | 1.1 8e3b59cbfaa682579fb24502d1ad1194.cloudfront.net (CloudFront) |
| x-amz-cf-id | CXQHhrxvnJaUiqiYq2i_47tas9D2dICbJr7sOvSbesL26Vii-HhSaA== |
| x-amz-cf-pop | DEN53-P2 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | ab98ea7db3d6a3855dd05f076de378e2 |
{
"id": "902478d7-4dba-4a29-929e-54fd4d346cd7",
"object": "chat.completion",
"created": 1789336324,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Milk is \u00a31.20.",
"reasoning_content": ""
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 470,
"completion_tokens": 9,
"total_tokens": 479,
"prompt_tokens_details": {
"cached_tokens": 256
},
"completion_tokens_details": {
"reasoning_tokens": 0
},
"prompt_cache_hit_tokens": 256,
"prompt_cache_miss_tokens": 214
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | Milk is £1.20. |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Order 2 bottles of milk. |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | place_order({"item": "milk", "quantity": 2}) |
| accept | */* |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| host | httpbin.org |
| user-agent | python-httpx/0.28.1 |
null| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Order 2 bottles of milk. |
| [2] | ai | place_order({"item": "milk", "quantity": 2}) |
| [3] | tool | ['place_order'] did not confirm: ['https://httpbin.org'] did not answer in time, and the call may have been received. It may have taken effect. Do not call it again; say what is uncertain. |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | The order may or may not have been placed. Please check before ordering again. |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Order 2 bottles of milk. |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 773 |
| content-type | application/json |
| host | api.deepseek.com |
| user-agent | OpenAI/Python 3.6.0 |
| x-stainless-arch | arm64 |
| x-stainless-async | false |
| x-stainless-lang | python |
| x-stainless-os | MacOS |
| x-stainless-package-version | 3.6.0 |
| x-stainless-raw-response | true |
| x-stainless-read-timeout | 60.0 |
| x-stainless-retry-count | 0 |
| x-stainless-runtime | CPython |
| x-stainless-runtime-version | 3.14.7 |
{
"messages": [
{
"content": "You answer briefly and plainly. Use the tools you are given.",
"role": "system"
},
{
"content": "Order 2 bottles of milk.",
"role": "user"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "place_order",
"description": "Order a quantity of an item. Placing an order twice orders it twice.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
},
"quantity": {
"type": "integer"
}
},
"required": [
"item",
"quantity"
],
"type": "object"
}
}
},
{
"type": "function",
"function": {
"name": "price_of",
"description": "The current shelf price of one of an item, in pounds.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
}
},
"required": [
"item"
],
"type": "object"
}
}
}
]
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:52:04 GMT |
| server | elb |
| strict-transport-security | max-age=31536000; includeSubDomains; preload |
| transfer-encoding | chunked |
| vary | origin, access-control-request-method, access-control-request-headers |
| via | 1.1 2049902380178fd7b885115d80ccf966.cloudfront.net (CloudFront) |
| x-amz-cf-id | Ita1mnTZPvLFBhGDsJLepL82HTMkOgF35-k7d1Qnb0cydUjTOpDjgw== |
| x-amz-cf-pop | DEN52-P3 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | c62131828f451cc8c815f7a9fd75c24f |
{
"id": "ad68a2d3-fb77-489c-9ab3-21346f4f9209",
"object": "chat.completion",
"created": 1789336324,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "",
"reasoning_content": "The user wants 2 bottles of milk. Just place the order.",
"tool_calls": [
{
"index": 0,
"id": "call_00_K8V6AHIBwnmmWiKtCE2H6233",
"type": "function",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 2}"
}
}
]
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 418,
"completion_tokens": 69,
"total_tokens": 487,
"prompt_tokens_details": {
"cached_tokens": 256
},
"completion_tokens_details": {
"reasoning_tokens": 14
},
"prompt_cache_hit_tokens": 256,
"prompt_cache_miss_tokens": 162
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | place_order({"item": "milk", "quantity": 2}) |
| accept | */* |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| host | httpbin.org |
| user-agent | python-httpx/0.28.1 |
null| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Order 2 bottles of milk. |
| [2] | ai | place_order({"item": "milk", "quantity": 2}) |
| [3] | tool | ['place_order'] did not confirm: ['https://httpbin.org'] did not answer in time, and the call may have been received. It may have taken effect. Do not call it again; say what is uncertain. |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 1315 |
| content-type | application/json |
| host | api.deepseek.com |
| user-agent | OpenAI/Python 3.6.0 |
| x-stainless-arch | arm64 |
| x-stainless-async | false |
| x-stainless-lang | python |
| x-stainless-os | MacOS |
| x-stainless-package-version | 3.6.0 |
| x-stainless-raw-response | true |
| x-stainless-read-timeout | 60.0 |
| x-stainless-retry-count | 0 |
| x-stainless-runtime | CPython |
| x-stainless-runtime-version | 3.14.7 |
{
"messages": [
{
"content": "You answer briefly and plainly. Use the tools you are given.",
"role": "system"
},
{
"content": "Order 2 bottles of milk.",
"role": "user"
},
{
"content": null,
"role": "assistant",
"tool_calls": [
{
"type": "function",
"id": "call_00_K8V6AHIBwnmmWiKtCE2H6233",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 2}"
}
}
],
"reasoning_content": "The user wants 2 bottles of milk. Just place the order."
},
{
"content": "['place_order'] did not confirm: ['https://httpbin.org'] did not answer in time, and the call may have been received. It may have taken effect. Do not call it again; say what is uncertain.",
"role": "tool",
"tool_call_id": "call_00_K8V6AHIBwnmmWiKtCE2H6233"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "place_order",
"description": "Order a quantity of an item. Placing an order twice orders it twice.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
},
"quantity": {
"type": "integer"
}
},
"required": [
"item",
"quantity"
],
"type": "object"
}
}
},
{
"type": "function",
"function": {
"name": "price_of",
"description": "The current shelf price of one of an item, in pounds.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
}
},
"required": [
"item"
],
"type": "object"
}
}
}
]
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:52:07 GMT |
| server | elb |
| strict-transport-security | max-age=31536000; includeSubDomains; preload |
| transfer-encoding | chunked |
| vary | origin, access-control-request-method, access-control-request-headers |
| via | 1.1 ba437ea2340585e48bd8901315998164.cloudfront.net (CloudFront) |
| x-amz-cf-id | R--gsQ7m560SO4D6yFp-bOaxF-Rzn2NWiPUFLCqli6te_cCmniB-3g== |
| x-amz-cf-pop | DEN53-P2 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | d918e34650b2c5a9889cc6a6b9855fdd |
{
"id": "01e69c6f-dd25-4941-b96f-6b313c85e819",
"object": "chat.completion",
"created": 1789336327,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "I tried to place the order for 2 bottles of milk, but the request timed out and didn't confirm. It may or may not have gone through.\n\nI didn't retry, since doing so could order it twice. If you want, check whether the order appears on your side \u2014 if it doesn't, I can place it again.",
"reasoning_content": "The order call timed out \u2014 may or may not have been placed. I should not retry. Report uncertainty."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 544,
"completion_tokens": 94,
"total_tokens": 638,
"prompt_tokens_details": {
"cached_tokens": 384
},
"completion_tokens_details": {
"reasoning_tokens": 23
},
"prompt_cache_hit_tokens": 384,
"prompt_cache_miss_tokens": 160
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | I tried to place the order for 2 bottles of milk, but the request timed out and didn't confirm. It may or may not have gone through. I didn't retry, since doing so could order it twice. If you want, check whether the order appears on your side — if it doesn't, I can place it again. |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Order 20 bottles of milk. |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | place_order({"item": "milk", "quantity": 20}) |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Order 20 bottles of milk. |
| [2] | ai | place_order({"item": "milk", "quantity": 20}) |
| [3] | tool | ['place_order'] rejected the arguments: quantity ['20'] must be between 1 and 12. Correct them and call it again. |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | place_order({"item": "milk", "quantity": 12}) |
| accept | */* |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| host | httpbin.org |
| user-agent | python-httpx/0.28.1 |
null| content-length | 47 |
| content-type | application/json |
{
"args": {
"item": "milk"
},
"reference": "ord-8812"
}| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Order 20 bottles of milk. |
| [2] | ai | place_order({"item": "milk", "quantity": 20}) |
| [3] | tool | ['place_order'] rejected the arguments: quantity ['20'] must be between 1 and 12. Correct them and call it again. |
| [4] | ai | place_order({"item": "milk", "quantity": 12}) |
| [5] | tool | ordered 12 x milk |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | I ordered 12, the most allowed in one order. |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Order 20 bottles of milk. |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 774 |
| content-type | application/json |
| host | api.deepseek.com |
| user-agent | OpenAI/Python 3.6.0 |
| x-stainless-arch | arm64 |
| x-stainless-async | false |
| x-stainless-lang | python |
| x-stainless-os | MacOS |
| x-stainless-package-version | 3.6.0 |
| x-stainless-raw-response | true |
| x-stainless-read-timeout | 60.0 |
| x-stainless-retry-count | 0 |
| x-stainless-runtime | CPython |
| x-stainless-runtime-version | 3.14.7 |
{
"messages": [
{
"content": "You answer briefly and plainly. Use the tools you are given.",
"role": "system"
},
{
"content": "Order 20 bottles of milk.",
"role": "user"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "place_order",
"description": "Order a quantity of an item. Placing an order twice orders it twice.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
},
"quantity": {
"type": "integer"
}
},
"required": [
"item",
"quantity"
],
"type": "object"
}
}
},
{
"type": "function",
"function": {
"name": "price_of",
"description": "The current shelf price of one of an item, in pounds.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
}
},
"required": [
"item"
],
"type": "object"
}
}
}
]
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:52:08 GMT |
| server | elb |
| strict-transport-security | max-age=31536000; includeSubDomains; preload |
| transfer-encoding | chunked |
| vary | origin, access-control-request-method, access-control-request-headers |
| via | 1.1 d9978c4c79926d2f68f210859236f550.cloudfront.net (CloudFront) |
| x-amz-cf-id | mIN3SKwFpjMk3b4fRVlEDDwddp3Lfav6RCDcmdmwDm5Gl70ZDhZtkw== |
| x-amz-cf-pop | DEN53-P2 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | 59bb71af81ec1cb88be90e7017ebfa9c |
{
"id": "41fe6696-e1a6-4c9c-8315-39feee3aecbb",
"object": "chat.completion",
"created": 1789336328,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "",
"reasoning_content": "The user wants 20 bottles of milk. The tool is place_order with item \"milk\" and quantity 20.\n\nBut wait \u2014 maybe I should check price? The task just says order 20 bottles of milk. Placing order twice orders it twice, so a single call with quantity 20 is right.\n\nShould I check price first? Not necessary but could be useful. Simpler: just place the order. But being careful \u2014 maybe I should check the price to inform. The instruction: answer briefly and plainly. Let's just place the order.\n\nActually, could there be a trap? Perhaps the item enum includes milk. Fine.\n\nPlace order for milk, quantity 20.",
"tool_calls": [
{
"index": 0,
"id": "call_00_ygBaqDPyj5jH3Dx5HvjL3909",
"type": "function",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 20}"
}
}
]
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 418,
"completion_tokens": 194,
"total_tokens": 612,
"prompt_tokens_details": {
"cached_tokens": 256
},
"completion_tokens_details": {
"reasoning_tokens": 139
},
"prompt_cache_hit_tokens": 256,
"prompt_cache_miss_tokens": 162
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | place_order({"item": "milk", "quantity": 20}) |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Order 20 bottles of milk. |
| [2] | ai | place_order({"item": "milk", "quantity": 20}) |
| [3] | tool | ['place_order'] rejected the arguments: quantity ['20'] must be between 1 and 12. Correct them and call it again. |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 1802 |
| content-type | application/json |
| host | api.deepseek.com |
| user-agent | OpenAI/Python 3.6.0 |
| x-stainless-arch | arm64 |
| x-stainless-async | false |
| x-stainless-lang | python |
| x-stainless-os | MacOS |
| x-stainless-package-version | 3.6.0 |
| x-stainless-raw-response | true |
| x-stainless-read-timeout | 60.0 |
| x-stainless-retry-count | 0 |
| x-stainless-runtime | CPython |
| x-stainless-runtime-version | 3.14.7 |
{
"messages": [
{
"content": "You answer briefly and plainly. Use the tools you are given.",
"role": "system"
},
{
"content": "Order 20 bottles of milk.",
"role": "user"
},
{
"content": null,
"role": "assistant",
"tool_calls": [
{
"type": "function",
"id": "call_00_ygBaqDPyj5jH3Dx5HvjL3909",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 20}"
}
}
],
"reasoning_content": "The user wants 20 bottles of milk. The tool is place_order with item \"milk\" and quantity 20.\n\nBut wait \u2014 maybe I should check price? The task just says order 20 bottles of milk. Placing order twice orders it twice, so a single call with quantity 20 is right.\n\nShould I check price first? Not necessary but could be useful. Simpler: just place the order. But being careful \u2014 maybe I should check the price to inform. The instruction: answer briefly and plainly. Let's just place the order.\n\nActually, could there be a trap? Perhaps the item enum includes milk. Fine.\n\nPlace order for milk, quantity 20."
},
{
"content": "['place_order'] rejected the arguments: quantity ['20'] must be between 1 and 12. Correct them and call it again.",
"role": "tool",
"tool_call_id": "call_00_ygBaqDPyj5jH3Dx5HvjL3909"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "place_order",
"description": "Order a quantity of an item. Placing an order twice orders it twice.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
},
"quantity": {
"type": "integer"
}
},
"required": [
"item",
"quantity"
],
"type": "object"
}
}
},
{
"type": "function",
"function": {
"name": "price_of",
"description": "The current shelf price of one of an item, in pounds.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
}
},
"required": [
"item"
],
"type": "object"
}
}
}
]
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:52:10 GMT |
| server | elb |
| strict-transport-security | max-age=31536000; includeSubDomains; preload |
| transfer-encoding | chunked |
| vary | origin, access-control-request-method, access-control-request-headers |
| via | 1.1 a5f8144ef16599e2b755229616dbcef6.cloudfront.net (CloudFront) |
| x-amz-cf-id | CejAeRrhWIH-hf0Lmlsqk5V99pYTY-fLEMedEUJJ-3bx_PU4Lt29og== |
| x-amz-cf-pop | DEN53-P4 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | be0558c1dfab7ddbb06f51ff891f8b60 |
{
"id": "5cad0921-3031-421a-9563-beaed5d2c333",
"object": "chat.completion",
"created": 1789336330,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The max per order is 12, so I'll split it into two orders (12 + 8 = 20).",
"reasoning_content": "The system rejected quantity 20, max is 12 per order. So I need to split into multiple orders: 12 + 8 = 20.\n\nLet me place two orders: one for 12, one for 8.\n\nThese are independent? They both need to happen; can be in same block. Yes, no dependency.",
"tool_calls": [
{
"index": 0,
"id": "call_00_WTguMdAa0L0Eo4MQbLLF0042",
"type": "function",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 12}"
}
},
{
"index": 1,
"id": "call_01_wVN46r9RtJMWoN6vyRUe5802",
"type": "function",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 8}"
}
}
]
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 651,
"completion_tokens": 193,
"total_tokens": 844,
"prompt_tokens_details": {
"cached_tokens": 512
},
"completion_tokens_details": {
"reasoning_tokens": 69
},
"prompt_cache_hit_tokens": 512,
"prompt_cache_miss_tokens": 139
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | The max per order is 12, so I'll split it into two orders (12 + 8 = 20). place_order({"item": "milk", "quantity": 12}) place_order({"item": "milk", "quantity": 8}) |
| accept | */* |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| host | httpbin.org |
| user-agent | python-httpx/0.28.1 |
null| access-control-allow-credentials | true |
| access-control-allow-origin | * |
| connection | keep-alive |
| content-length | 425 |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:52:12 GMT |
| server | gunicorn/19.9.0 |
{
"args": {
"item": "milk",
"quantity": "12"
},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate, zstd",
"Authorization": "Bearer primer-demo-key",
"Host": "httpbin.org",
"User-Agent": "python-httpx/0.28.1",
"X-Amzn-Trace-Id": "Root=1-6aa71b0c-51ca095b0e97b1f42328c82a"
},
"origin": "71.218.120.63",
"url": "https://httpbin.org/get?item=milk&quantity=12"
}| accept | */* |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| host | httpbin.org |
| user-agent | python-httpx/0.28.1 |
null| access-control-allow-credentials | true |
| access-control-allow-origin | * |
| connection | keep-alive |
| content-length | 423 |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:52:12 GMT |
| server | gunicorn/19.9.0 |
{
"args": {
"item": "milk",
"quantity": "8"
},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate, zstd",
"Authorization": "Bearer primer-demo-key",
"Host": "httpbin.org",
"User-Agent": "python-httpx/0.28.1",
"X-Amzn-Trace-Id": "Root=1-6aa71b0c-38586e3a42c434231d7ca35b"
},
"origin": "71.218.120.63",
"url": "https://httpbin.org/get?item=milk&quantity=8"
}| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Order 20 bottles of milk. |
| [2] | ai | place_order({"item": "milk", "quantity": 20}) |
| [3] | tool | ['place_order'] rejected the arguments: quantity ['20'] must be between 1 and 12. Correct them and call it again. |
| [4] | ai | The max per order is 12, so I'll split it into two orders (12 + 8 = 20). place_order({"item": "milk", "quantity": 12}) place_order({"item": "milk", "quantity": 8}) |
| [5] | tool | ordered 12 x milk |
| [6] | tool | ordered 8 x milk |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 2682 |
| content-type | application/json |
| host | api.deepseek.com |
| user-agent | OpenAI/Python 3.6.0 |
| x-stainless-arch | arm64 |
| x-stainless-async | false |
| x-stainless-lang | python |
| x-stainless-os | MacOS |
| x-stainless-package-version | 3.6.0 |
| x-stainless-raw-response | true |
| x-stainless-read-timeout | 60.0 |
| x-stainless-retry-count | 0 |
| x-stainless-runtime | CPython |
| x-stainless-runtime-version | 3.14.7 |
{
"messages": [
{
"content": "You answer briefly and plainly. Use the tools you are given.",
"role": "system"
},
{
"content": "Order 20 bottles of milk.",
"role": "user"
},
{
"content": null,
"role": "assistant",
"tool_calls": [
{
"type": "function",
"id": "call_00_ygBaqDPyj5jH3Dx5HvjL3909",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 20}"
}
}
],
"reasoning_content": "The user wants 20 bottles of milk. The tool is place_order with item \"milk\" and quantity 20.\n\nBut wait \u2014 maybe I should check price? The task just says order 20 bottles of milk. Placing order twice orders it twice, so a single call with quantity 20 is right.\n\nShould I check price first? Not necessary but could be useful. Simpler: just place the order. But being careful \u2014 maybe I should check the price to inform. The instruction: answer briefly and plainly. Let's just place the order.\n\nActually, could there be a trap? Perhaps the item enum includes milk. Fine.\n\nPlace order for milk, quantity 20."
},
{
"content": "['place_order'] rejected the arguments: quantity ['20'] must be between 1 and 12. Correct them and call it again.",
"role": "tool",
"tool_call_id": "call_00_ygBaqDPyj5jH3Dx5HvjL3909"
},
{
"content": "The max per order is 12, so I'll split it into two orders (12 + 8 = 20).",
"role": "assistant",
"tool_calls": [
{
"type": "function",
"id": "call_00_WTguMdAa0L0Eo4MQbLLF0042",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 12}"
}
},
{
"type": "function",
"id": "call_01_wVN46r9RtJMWoN6vyRUe5802",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 8}"
}
}
],
"reasoning_content": "The system rejected quantity 20, max is 12 per order. So I need to split into multiple orders: 12 + 8 = 20.\n\nLet me place two orders: one for 12, one for 8.\n\nThese are independent? They both need to happen; can be in same block. Yes, no dependency."
},
{
"content": "ordered 12 x milk",
"role": "tool",
"tool_call_id": "call_00_WTguMdAa0L0Eo4MQbLLF0042"
},
{
"content": "ordered 8 x milk",
"role": "tool",
"tool_call_id": "call_01_wVN46r9RtJMWoN6vyRUe5802"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "place_order",
"description": "Order a quantity of an item. Placing an order twice orders it twice.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
},
"quantity": {
"type": "integer"
}
},
"required": [
"item",
"quantity"
],
"type": "object"
}
}
},
{
"type": "function",
"function": {
"name": "price_of",
"description": "The current shelf price of one of an item, in pounds.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
}
},
"required": [
"item"
],
"type": "object"
}
}
}
]
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:52:12 GMT |
| server | elb |
| strict-transport-security | max-age=31536000; includeSubDomains; preload |
| transfer-encoding | chunked |
| vary | origin, access-control-request-method, access-control-request-headers |
| via | 1.1 901770ea429e342cd86b7d04579a8c40.cloudfront.net (CloudFront) |
| x-amz-cf-id | 608eeyQOKAKNMsvL6XHugA6wDcqeN2dQTbQeHHr0TAUc3upGiMjE0g== |
| x-amz-cf-pop | DEN53-P4 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | 66b7a203321972960ef9a99556b1cd32 |
{
"id": "d3ffee7d-d94b-41ce-afe2-e457be826500",
"object": "chat.completion",
"created": 1789336332,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Done \u2014 20 bottles of milk ordered as two orders (12 + 8), since the order limit is 12 per order.",
"reasoning_content": ""
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 874,
"completion_tokens": 28,
"total_tokens": 902,
"prompt_tokens_details": {
"cached_tokens": 640
},
"completion_tokens_details": {
"reasoning_tokens": 0
},
"prompt_cache_hit_tokens": 640,
"prompt_cache_miss_tokens": 234
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | Done — 20 bottles of milk ordered as two orders (12 + 8), since the order limit is 12 per order. |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | How much is milk? |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | price_of({"item": "milk"}) |
| accept | */* |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| host | httpbin.org |
| user-agent | python-httpx/0.28.1 |
null| content-length | 0 |
| content-type | text/plain; charset=utf-8 |
null| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | How much is milk? |
| [2] | ai | price_of({"item": "milk"}) |
| [3] | tool | ['price_of'] failed: ['https://httpbin.org'] answered ['404']. It will not succeed. Answer without it. |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | I could not get the price of milk. |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | How much is milk? |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 766 |
| content-type | application/json |
| host | api.deepseek.com |
| user-agent | OpenAI/Python 3.6.0 |
| x-stainless-arch | arm64 |
| x-stainless-async | false |
| x-stainless-lang | python |
| x-stainless-os | MacOS |
| x-stainless-package-version | 3.6.0 |
| x-stainless-raw-response | true |
| x-stainless-read-timeout | 60.0 |
| x-stainless-retry-count | 0 |
| x-stainless-runtime | CPython |
| x-stainless-runtime-version | 3.14.7 |
{
"messages": [
{
"content": "You answer briefly and plainly. Use the tools you are given.",
"role": "system"
},
{
"content": "How much is milk?",
"role": "user"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "place_order",
"description": "Order a quantity of an item. Placing an order twice orders it twice.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
},
"quantity": {
"type": "integer"
}
},
"required": [
"item",
"quantity"
],
"type": "object"
}
}
},
{
"type": "function",
"function": {
"name": "price_of",
"description": "The current shelf price of one of an item, in pounds.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
}
},
"required": [
"item"
],
"type": "object"
}
}
}
]
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:52:14 GMT |
| server | elb |
| strict-transport-security | max-age=31536000; includeSubDomains; preload |
| transfer-encoding | chunked |
| vary | origin, access-control-request-method, access-control-request-headers |
| via | 1.1 f91d1b84d49f9e5cc7391ee66e3cbed0.cloudfront.net (CloudFront) |
| x-amz-cf-id | gBNLwCr4a5__6rAmc4QApZdkFriFj3X3zf55J3v8RK1RyV-IVIvUzA== |
| x-amz-cf-pop | DEN52-P3 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | d91bc7a0d64223a69b800f9645a218bf |
{
"id": "2666a2e3-c93e-4bf4-816b-ed49e14402fb",
"object": "chat.completion",
"created": 1789336333,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "",
"reasoning_content": "Just answer with the price. I need to call price_of.",
"tool_calls": [
{
"index": 0,
"id": "call_00_9Na7quz0x1DzR3V6CpmW8098",
"type": "function",
"function": {
"name": "price_of",
"arguments": "{\"item\": \"milk\"}"
}
}
]
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 416,
"completion_tokens": 52,
"total_tokens": 468,
"prompt_tokens_details": {
"cached_tokens": 256
},
"completion_tokens_details": {
"reasoning_tokens": 13
},
"prompt_cache_hit_tokens": 256,
"prompt_cache_miss_tokens": 160
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | price_of({"item": "milk"}) |
| accept | */* |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| host | httpbin.org |
| user-agent | python-httpx/0.28.1 |
null| access-control-allow-credentials | true |
| access-control-allow-origin | * |
| connection | keep-alive |
| content-length | 0 |
| content-type | text/html; charset=utf-8 |
| date | Sun, 13 Sep 2026 21:52:15 GMT |
| server | gunicorn/19.9.0 |
null| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | How much is milk? |
| [2] | ai | price_of({"item": "milk"}) |
| [3] | tool | ['price_of'] failed: ['https://httpbin.org'] answered ['404']. It will not succeed. Answer without it. |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. Placing an order twice orders it twice. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. Placing an order twice orders it twice.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["item", "quantity"], "title": "place_order", "type": "object"} |
| price_of | The current shelf price of one of an item, in pounds. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of one of an item, in pounds.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 1199 |
| content-type | application/json |
| host | api.deepseek.com |
| user-agent | OpenAI/Python 3.6.0 |
| x-stainless-arch | arm64 |
| x-stainless-async | false |
| x-stainless-lang | python |
| x-stainless-os | MacOS |
| x-stainless-package-version | 3.6.0 |
| x-stainless-raw-response | true |
| x-stainless-read-timeout | 60.0 |
| x-stainless-retry-count | 0 |
| x-stainless-runtime | CPython |
| x-stainless-runtime-version | 3.14.7 |
{
"messages": [
{
"content": "You answer briefly and plainly. Use the tools you are given.",
"role": "system"
},
{
"content": "How much is milk?",
"role": "user"
},
{
"content": null,
"role": "assistant",
"tool_calls": [
{
"type": "function",
"id": "call_00_9Na7quz0x1DzR3V6CpmW8098",
"function": {
"name": "price_of",
"arguments": "{\"item\": \"milk\"}"
}
}
],
"reasoning_content": "Just answer with the price. I need to call price_of."
},
{
"content": "['price_of'] failed: ['https://httpbin.org'] answered ['404']. It will not succeed. Answer without it.",
"role": "tool",
"tool_call_id": "call_00_9Na7quz0x1DzR3V6CpmW8098"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "place_order",
"description": "Order a quantity of an item. Placing an order twice orders it twice.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
},
"quantity": {
"type": "integer"
}
},
"required": [
"item",
"quantity"
],
"type": "object"
}
}
},
{
"type": "function",
"function": {
"name": "price_of",
"description": "The current shelf price of one of an item, in pounds.",
"parameters": {
"properties": {
"item": {
"enum": [
"bread",
"butter",
"chips",
"milk"
],
"type": "string"
}
},
"required": [
"item"
],
"type": "object"
}
}
}
]
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:52:15 GMT |
| server | elb |
| strict-transport-security | max-age=31536000; includeSubDomains; preload |
| transfer-encoding | chunked |
| vary | origin, access-control-request-method, access-control-request-headers |
| via | 1.1 be2104da500d7ae8e7fdecc1f206496c.cloudfront.net (CloudFront) |
| x-amz-cf-id | nhqB7F4wvuzfh_dOJVtgIeXe6pQk6XyJFL7clxp5EHhkGXwnrIjP3g== |
| x-amz-cf-pop | DEN53-P6 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | e9fe8f6b623728a2bee6e641e1e5660c |
{
"id": "6c5233b6-62a6-49cc-9700-bcc148780a49",
"object": "chat.completion",
"created": 1789336335,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "I couldn't check the price \u2014 the pricing lookup failed, so I don't have the current price of milk. You'd need to check the shelf or try again later.",
"reasoning_content": "The tool failed. Answer without it."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 505,
"completion_tokens": 44,
"total_tokens": 549,
"prompt_tokens_details": {
"cached_tokens": 256
},
"completion_tokens_details": {
"reasoning_tokens": 8
},
"prompt_cache_hit_tokens": 256,
"prompt_cache_miss_tokens": 249
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | I couldn't check the price — the pricing lookup failed, so I don't have the current price of milk. You'd need to check the shelf or try again later. |