| role | content | |
|---|---|---|
| [0] | human | Check stock for 3x widget. |
| tool | description | schema |
|---|---|---|
| check_stock | Check stock and price for a quantity of a sku. | {"description": "Check stock and price for a quantity of a sku.", "properties": {"sku": {"title": "Sku", "type": "string"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["sku", "quantity"], "title": "check_stock", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | check_stock({"sku": "widget", "quantity": 3}) |
| role | content | |
|---|---|---|
| [0] | human | Check stock for 3x widget. |
| tool | description | schema |
|---|---|---|
| check_stock | Check stock and price for a quantity of a sku. | {"description": "Check stock and price for a quantity of a sku.", "properties": {"sku": {"title": "Sku", "type": "string"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["sku", "quantity"], "title": "check_stock", "type": "object"} |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 366 |
| 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": "Check stock for 3x widget.",
"role": "user"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "check_stock",
"description": "Check stock and price for a quantity of a sku.",
"parameters": {
"properties": {
"sku": {
"type": "string"
},
"quantity": {
"type": "integer"
}
},
"required": [
"sku",
"quantity"
],
"type": "object"
}
}
}
]
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:59:31 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 5ca5d4f769888ca013d817040942ebf2.cloudfront.net (CloudFront) |
| x-amz-cf-id | GTmzB1OrPlytDXh8RT_YdGTv39A8Gq6jcH5u0aDQDbohu13q4lgxvQ== |
| x-amz-cf-pop | DEN53-P1 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | b878f19586edfa2de3a093586f06faa8 |
{
"id": "0cb0d70b-0df0-487d-bf71-e0161a6ea714",
"object": "chat.completion",
"created": 1789336771,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "",
"reasoning_content": "The user wants to check stock for 3x widget. The sku is probably \"widget\". Let me call the tool.",
"tool_calls": [
{
"index": 0,
"id": "call_00_gVGDYp0DwuKaVrAxKJmH7472",
"type": "function",
"function": {
"name": "check_stock",
"arguments": "{\"sku\": \"widget\", \"quantity\": 3}"
}
}
]
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 314,
"completion_tokens": 81,
"total_tokens": 395,
"prompt_tokens_details": {
"cached_tokens": 128
},
"completion_tokens_details": {
"reasoning_tokens": 26
},
"prompt_cache_hit_tokens": 128,
"prompt_cache_miss_tokens": 186
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | check_stock({"sku": "widget", "quantity": 3}) |
| role | content | |
|---|---|---|
| [0] | human | Check stock for 20x widget. |
| tool | description | schema |
|---|---|---|
| check_stock | Check stock and price for a quantity of a sku. | {"description": "Check stock and price for a quantity of a sku.", "properties": {"sku": {"title": "Sku", "type": "string"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["sku", "quantity"], "title": "check_stock", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | check_stock({"sku": "widget", "quantity": 20}) |
| role | content | |
|---|---|---|
| [0] | human | Check stock for 20x widget. |
| tool | description | schema |
|---|---|---|
| check_stock | Check stock and price for a quantity of a sku. | {"description": "Check stock and price for a quantity of a sku.", "properties": {"sku": {"title": "Sku", "type": "string"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["sku", "quantity"], "title": "check_stock", "type": "object"} |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 367 |
| 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": "Check stock for 20x widget.",
"role": "user"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "check_stock",
"description": "Check stock and price for a quantity of a sku.",
"parameters": {
"properties": {
"sku": {
"type": "string"
},
"quantity": {
"type": "integer"
}
},
"required": [
"sku",
"quantity"
],
"type": "object"
}
}
}
]
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:59:32 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 81c07f42f70c1aec766dc553e24f3864.cloudfront.net (CloudFront) |
| x-amz-cf-id | 03rKqhHuYkhSU7J3q1A_5ZHQIOLER2y2yLlihGJw6sKzOOw2ZpuSvQ== |
| x-amz-cf-pop | DEN53-P1 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | c490c5975669ca1007e2f6b407dcbbc8 |
{
"id": "0c09232e-d08f-42dd-b4a3-4f83541cfd5c",
"object": "chat.completion",
"created": 1789336772,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "",
"reasoning_content": "The user wants to check stock for 20 units of widget. I need the SKU. The user didn't provide a SKU, just \"widget\". Let me try calling the tool with sku \"widget\"? But SKU is typically a code. Maybe I should just call with \"widget\".\n\nThe tool requires sku and quantity. I'll use \"widget\" as the sku since that's what the user said. It may fail and I can report back.\n\nI think best to just call the tool with the info given.",
"tool_calls": [
{
"index": 0,
"id": "call_00_EU64AO6Ycq1qbyZXjl0h1179",
"type": "function",
"function": {
"name": "check_stock",
"arguments": "{\"sku\": \"widget\", \"quantity\": 20}"
}
}
]
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 314,
"completion_tokens": 164,
"total_tokens": 478,
"prompt_tokens_details": {
"cached_tokens": 128
},
"completion_tokens_details": {
"reasoning_tokens": 109
},
"prompt_cache_hit_tokens": 128,
"prompt_cache_miss_tokens": 186
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | check_stock({"sku": "widget", "quantity": 20}) |
| role | content | |
|---|---|---|
| [0] | human | Check stock for 2x gadget. |
| tool | description | schema |
|---|---|---|
| check_stock | Check stock and price for a quantity of a sku. | {"description": "Check stock and price for a quantity of a sku.", "properties": {"sku": {"title": "Sku", "type": "string"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["sku", "quantity"], "title": "check_stock", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | check_stock({"sku": "gadget", "quantity": 2}) |
| role | content | |
|---|---|---|
| [0] | human | Check stock for 1x widget. |
| tool | description | schema |
|---|---|---|
| check_stock | Check stock and price for a quantity of a sku. | {"description": "Check stock and price for a quantity of a sku.", "properties": {"sku": {"title": "Sku", "type": "string"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["sku", "quantity"], "title": "check_stock", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | check_stock({"sku": "widget", "quantity": 1}) |
| role | content | |
|---|---|---|
| [0] | human | Check stock for 1x widget. |
| tool | description | schema |
|---|---|---|
| check_stock | Check stock and price for a quantity of a sku. | {"description": "Check stock and price for a quantity of a sku.", "properties": {"sku": {"title": "Sku", "type": "string"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["sku", "quantity"], "title": "check_stock", "type": "object"} |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 366 |
| 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": "Check stock for 1x widget.",
"role": "user"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "check_stock",
"description": "Check stock and price for a quantity of a sku.",
"parameters": {
"properties": {
"sku": {
"type": "string"
},
"quantity": {
"type": "integer"
}
},
"required": [
"sku",
"quantity"
],
"type": "object"
}
}
}
]
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:59:34 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 16d72e0791ff01fc4470d27fc024527a.cloudfront.net (CloudFront) |
| x-amz-cf-id | RlY-gQFGkAVtzwaSfAS2ubYRL6pS144I3hbfrO4QJchjt9B7PtpGvA== |
| x-amz-cf-pop | DEN52-P2 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | 6f733ba75b20a46b1678714bb54c4c3b |
{
"id": "b568dcae-7a5a-4c62-b5ba-744cda5fc572",
"object": "chat.completion",
"created": 1789336774,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "I'll check that for you.",
"reasoning_content": "The user wants to check stock for 1x widget. I need a SKU. \"widget\" is ambiguous - is it a SKU? Let me just call with sku \"widget\".\n\nActually, I should consider whether I need to clarify. The tool requires a sku. The user said \"widget\" which could be the SKU literally. I'll call it.",
"tool_calls": [
{
"index": 0,
"id": "call_00_7H8HegENH3vcYFy7smbZ3582",
"type": "function",
"function": {
"name": "check_stock",
"arguments": "{\"sku\": \"widget\", \"quantity\": 1}"
}
}
]
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 314,
"completion_tokens": 138,
"total_tokens": 452,
"prompt_tokens_details": {
"cached_tokens": 128
},
"completion_tokens_details": {
"reasoning_tokens": 77
},
"prompt_cache_hit_tokens": 128,
"prompt_cache_miss_tokens": 186
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | I'll check that for you. check_stock({"sku": "widget", "quantity": 1}) |
| role | content | |
|---|---|---|
| [0] | human | Check stock for 2x gadget. |
| tool | description | schema |
|---|---|---|
| check_stock | Check stock and price for a quantity of a sku. | {"description": "Check stock and price for a quantity of a sku.", "properties": {"sku": {"title": "Sku", "type": "string"}, "quantity": {"title": "Quantity", "type": "integer"}}, "required": ["sku", "quantity"], "title": "check_stock", "type": "object"} |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 366 |
| 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": "Check stock for 2x gadget.",
"role": "user"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "check_stock",
"description": "Check stock and price for a quantity of a sku.",
"parameters": {
"properties": {
"sku": {
"type": "string"
},
"quantity": {
"type": "integer"
}
},
"required": [
"sku",
"quantity"
],
"type": "object"
}
}
}
]
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:59:34 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 64544648f8289d0bd61ef02997afb698.cloudfront.net (CloudFront) |
| x-amz-cf-id | Rvw5FfEEx5ckPfrK7687SVHnJwZPt7kHbvV1DJpi5KYizkt2pFOCEQ== |
| x-amz-cf-pop | DEN52-P3 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | 988e96f8a2d6ab5d744a74b87d0f34de |
{
"id": "50b84e57-d8e0-4737-9a0b-f1d5e70fa99f",
"object": "chat.completion",
"created": 1789336774,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "I'll check that for you.",
"reasoning_content": "The user wants to check stock for 2x gadget. I need a SKU. \"gadget\" might be the SKU. Let me call check_stock with sku \"gadget\" and quantity 2.",
"tool_calls": [
{
"index": 0,
"id": "call_00_mWHA7LKv0xPiZnrsgR5i2891",
"type": "function",
"function": {
"name": "check_stock",
"arguments": "{\"sku\": \"gadget\", \"quantity\": 2}"
}
}
]
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 314,
"completion_tokens": 111,
"total_tokens": 425,
"prompt_tokens_details": {
"cached_tokens": 128
},
"completion_tokens_details": {
"reasoning_tokens": 48
},
"prompt_cache_hit_tokens": 128,
"prompt_cache_miss_tokens": 186
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | I'll check that for you. check_stock({"sku": "gadget", "quantity": 2}) |