| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Do we have enough milk for the week? We need four. |
| role | content | |
|---|---|---|
| [0] | ai | stock_on_hand({"item": "milk"}) |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Do we have enough milk for the week? We need four. |
| [2] | ai | stock_on_hand({"item": "milk"}) |
| [3] | tool | 2 |
| role | content | |
|---|---|---|
| [0] | ai | No -- there are two in the fridge, so you are two short. |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Do we have enough milk for the week? We need four. |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 482 |
| 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": "Do we have enough milk for the week? We need four.",
"role": "user"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "stock_on_hand",
"description": "How many of an item are currently in stock.",
"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:51:13 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 59b91fa5bb1f56f1a653604439afb430.cloudfront.net (CloudFront) |
| x-amz-cf-id | QDH82BFwtYnluViZvRD-OuoBuRt1XLoC3mYDeR2x9tFEg3Sxk_A6Dg== |
| x-amz-cf-pop | DEN53-P6 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | bbf2ca13b6b7d3468b5e1af76e936e28 |
{
"id": "73f40e73-db48-4b05-ba0e-9dbe1f8a7115",
"object": "chat.completion",
"created": 1789336273,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "",
"reasoning_content": "We need to check stock of milk.",
"tool_calls": [
{
"index": 0,
"id": "call_00_p5QV28xb2Cl1yVNTgtFG4108",
"type": "function",
"function": {
"name": "stock_on_hand",
"arguments": "{\"item\": \"milk\"}"
}
}
]
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 337,
"completion_tokens": 49,
"total_tokens": 386,
"prompt_tokens_details": {
"cached_tokens": 128
},
"completion_tokens_details": {
"reasoning_tokens": 8
},
"prompt_cache_hit_tokens": 128,
"prompt_cache_miss_tokens": 209
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | stock_on_hand({"item": "milk"}) |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Do we have enough milk for the week? We need four. |
| [2] | ai | stock_on_hand({"item": "milk"}) |
| [3] | tool | 2 |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 798 |
| 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": "Do we have enough milk for the week? We need four.",
"role": "user"
},
{
"content": null,
"role": "assistant",
"tool_calls": [
{
"type": "function",
"id": "call_00_p5QV28xb2Cl1yVNTgtFG4108",
"function": {
"name": "stock_on_hand",
"arguments": "{\"item\": \"milk\"}"
}
}
],
"reasoning_content": "We need to check stock of milk."
},
{
"content": "2",
"role": "tool",
"tool_call_id": "call_00_p5QV28xb2Cl1yVNTgtFG4108"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "stock_on_hand",
"description": "How many of an item are currently in stock.",
"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:51: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 d9978c4c79926d2f68f210859236f550.cloudfront.net (CloudFront) |
| x-amz-cf-id | 3yIKt0LKdn7XvUX5wC3CUjIYUdq7K7_485vP-d_fAbnQQlBEHI6QJg== |
| x-amz-cf-pop | DEN53-P2 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | acdc1d4b9999f6ed556ea3876a0bccc6 |
{
"id": "46805f7d-e01d-4e53-9df5-47924de68c9d",
"object": "chat.completion",
"created": 1789336274,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Not enough. You have 2 milks in stock and need 4 \u2014 so you're short by 2.",
"reasoning_content": "Stock is 2, need 4. Not enough."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 399,
"completion_tokens": 37,
"total_tokens": 436,
"prompt_tokens_details": {
"cached_tokens": 256
},
"completion_tokens_details": {
"reasoning_tokens": 12
},
"prompt_cache_hit_tokens": 256,
"prompt_cache_miss_tokens": 143
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | Not enough. You have 2 milks in stock and need 4 — so you're short by 2. |