| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Order 5 bottles of milk for the cafe, and 3 for the office, separately. |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. A write: the total counts it, once dispatched. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. A write: the total counts it, once dispatched.", "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 an item, in pounds. A read: the total ignores it. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of an item, in pounds. A read: the total ignores it.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | place_order({"item": "milk", "quantity": 5}) |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Order 5 bottles of milk for the cafe, and 3 for the office, separately. |
| [2] | ai | place_order({"item": "milk", "quantity": 5}) |
| [3] | tool | ordered 5 x milk |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. A write: the total counts it, once dispatched. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. A write: the total counts it, once dispatched.", "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 an item, in pounds. A read: the total ignores it. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of an item, in pounds. A read: the total ignores it.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | place_order({"item": "milk", "quantity": 3}) |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Order 5 bottles of milk for the cafe, and 3 for the office, separately. |
| [2] | ai | place_order({"item": "milk", "quantity": 5}) |
| [3] | tool | ordered 5 x milk |
| [4] | ai | place_order({"item": "milk", "quantity": 3}) |
| [5] | tool | ordered 3 x milk |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. A write: the total counts it, once dispatched. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. A write: the total counts it, once dispatched.", "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 an item, in pounds. A read: the total ignores it. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of an item, in pounds. A read: the total ignores it.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | Ordered 5 for the cafe and 3 for the office -- 8 in total. |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Order 5 bottles of milk for the cafe, and 3 for the office, separately. |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. A write: the total counts it, once dispatched. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. A write: the total counts it, once dispatched.", "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 an item, in pounds. A read: the total ignores it. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of an item, in pounds. A read: the total ignores it.", "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 | 850 |
| 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 5 bottles of milk for the cafe, and 3 for the office, separately.",
"role": "user"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "place_order",
"description": "Order a quantity of an item. A write: the total counts it, once dispatched.",
"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 an item, in pounds. A read: the total ignores it.",
"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:22 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 be626befb5228a851019aa4b9b0a73fe.cloudfront.net (CloudFront) |
| x-amz-cf-id | VnYFC8ZZCm4ma9yj11NscEtUulz63ladsKv3a9Z2rXgtCb2MSKMyFA== |
| x-amz-cf-pop | DEN53-P6 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | 682cf73f6b0fd8856374f276052f4da0 |
{
"id": "2acc4019-96eb-4f6d-a2ff-170ce1b193b0",
"object": "chat.completion",
"created": 1789336342,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "I'll place these as two separate orders, since the tool only records item and quantity \u2014 there's no field for the destination.",
"reasoning_content": "The user wants 5 bottles of milk for the cafe, and 3 for the office, separately. There's no \"location\" parameter or \"recipient\" parameter in the order tool. So I can only place orders of milk quantities. \"Separately\" suggests two separate orders: one of 5 and one of 3.\n\nLet me just place two orders: 5 milk, 3 milk.\n\nI could check price first, but not necessary. Let's just do it.\n\nThe tool only takes item and quantity, so \"separately\" = two orders.\n\nLet me call place_order twice.",
"tool_calls": [
{
"index": 0,
"id": "call_00_nKAEu1eWjgss2Ct86K403375",
"type": "function",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 5}"
}
},
{
"index": 1,
"id": "call_01_REsX6Dt2U8grtqNwqE9D9497",
"type": "function",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 3}"
}
}
]
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 438,
"completion_tokens": 248,
"total_tokens": 686,
"prompt_tokens_details": {
"cached_tokens": 256
},
"completion_tokens_details": {
"reasoning_tokens": 123
},
"prompt_cache_hit_tokens": 256,
"prompt_cache_miss_tokens": 182
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | I'll place these as two separate orders, since the tool only records item and quantity — there's no field for the destination. place_order({"item": "milk", "quantity": 5}) place_order({"item": "milk", "quantity": 3}) |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | Order 5 bottles of milk for the cafe, and 3 for the office, separately. |
| [2] | ai | I'll place these as two separate orders, since the tool only records item and quantity — there's no field for the destination. place_order({"item": "milk", "quantity": 5}) place_order({"item": "milk", "quantity": 3}) |
| [3] | tool | ordered 5 x milk |
| [4] | tool | ordered 3 x milk |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. A write: the total counts it, once dispatched. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. A write: the total counts it, once dispatched.", "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 an item, in pounds. A read: the total ignores it. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of an item, in pounds. A read: the total ignores it.", "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 | 2031 |
| 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 5 bottles of milk for the cafe, and 3 for the office, separately.",
"role": "user"
},
{
"content": "I'll place these as two separate orders, since the tool only records item and quantity \u2014 there's no field for the destination.",
"role": "assistant",
"tool_calls": [
{
"type": "function",
"id": "call_00_nKAEu1eWjgss2Ct86K403375",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 5}"
}
},
{
"type": "function",
"id": "call_01_REsX6Dt2U8grtqNwqE9D9497",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 3}"
}
}
],
"reasoning_content": "The user wants 5 bottles of milk for the cafe, and 3 for the office, separately. There's no \"location\" parameter or \"recipient\" parameter in the order tool. So I can only place orders of milk quantities. \"Separately\" suggests two separate orders: one of 5 and one of 3.\n\nLet me just place two orders: 5 milk, 3 milk.\n\nI could check price first, but not necessary. Let's just do it.\n\nThe tool only takes item and quantity, so \"separately\" = two orders.\n\nLet me call place_order twice."
},
{
"content": "ordered 5 x milk",
"role": "tool",
"tool_call_id": "call_00_nKAEu1eWjgss2Ct86K403375"
},
{
"content": "ordered 3 x milk",
"role": "tool",
"tool_call_id": "call_01_REsX6Dt2U8grtqNwqE9D9497"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "place_order",
"description": "Order a quantity of an item. A write: the total counts it, once dispatched.",
"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 an item, in pounds. A read: the total ignores it.",
"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:24 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 7266a33455d181f3974b454ffa05bcfa.cloudfront.net (CloudFront) |
| x-amz-cf-id | ofIb6xtTcIK1ijD3rzoUpPfMSp0r83ulvOUNuT8Xk6SjG__LZU5HtQ== |
| x-amz-cf-pop | DEN53-P4 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | b995e4cb056508a2cc9844937e886dc7 |
{
"id": "97b09483-074e-44f0-acec-d8878a3df295",
"object": "chat.completion",
"created": 1789336344,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Done \u2014 two orders placed: 5 milk and 3 milk, totaling 8 bottles.\n\nOne thing to flag: the ordering tool has no field for a destination, so the two orders are identical as recorded \u2014 nothing distinguishes the cafe's 5 from the office's 3. If your system needs that distinction tracked, it'll have to be recorded elsewhere.",
"reasoning_content": "Done. Note the limitation: the orders can't be labeled, so both are just milk orders totaling 8."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 716,
"completion_tokens": 97,
"total_tokens": 813,
"prompt_tokens_details": {
"cached_tokens": 512
},
"completion_tokens_details": {
"reasoning_tokens": 23
},
"prompt_cache_hit_tokens": 512,
"prompt_cache_miss_tokens": 204
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | Done — two orders placed: 5 milk and 3 milk, totaling 8 bottles. One thing to flag: the ordering tool has no field for a destination, so the two orders are identical as recorded — nothing distinguishes the cafe's 5 from the office's 3. If your system needs that distinction tracked, it'll have to be recorded elsewhere. |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | How much is milk, and please order 4 bottles. |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. A write: the total counts it, once dispatched. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. A write: the total counts it, once dispatched.", "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 an item, in pounds. A read: the total ignores it. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of an item, in pounds. A read: the total ignores it.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | price_of({"item": "milk"}) |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | How much is milk, and please order 4 bottles. |
| [2] | ai | price_of({"item": "milk"}) |
| [3] | tool | 1.20 for milk |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. A write: the total counts it, once dispatched. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. A write: the total counts it, once dispatched.", "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 an item, in pounds. A read: the total ignores it. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of an item, in pounds. A read: the total ignores it.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | place_order({"item": "milk", "quantity": 4}) |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | How much is milk, and please order 4 bottles. |
| [2] | ai | price_of({"item": "milk"}) |
| [3] | tool | 1.20 for milk |
| [4] | ai | place_order({"item": "milk", "quantity": 4}) |
| [5] | tool | ordered 4 x milk |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. A write: the total counts it, once dispatched. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. A write: the total counts it, once dispatched.", "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 an item, in pounds. A read: the total ignores it. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of an item, in pounds. A read: the total ignores it.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | Milk is 1.20 each; ordered 4 bottles. |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | How much is milk, and please order 4 bottles. |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. A write: the total counts it, once dispatched. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. A write: the total counts it, once dispatched.", "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 an item, in pounds. A read: the total ignores it. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of an item, in pounds. A read: the total ignores it.", "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 | 824 |
| 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, and please order 4 bottles.",
"role": "user"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "place_order",
"description": "Order a quantity of an item. A write: the total counts it, once dispatched.",
"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 an item, in pounds. A read: the total ignores it.",
"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:26 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 91881fdae44078e1c95546f3cb1e2366.cloudfront.net (CloudFront) |
| x-amz-cf-id | nzAzlXv6XA7xodCYI0IVM9v47SAfMnLQKxH0a1HaQqrZQJUIJTL2lQ== |
| x-amz-cf-pop | DEN53-P1 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | d0e054d21f1b7900eea20f0db8d11181 |
{
"id": "c58cb0da-bb9a-4f4c-9672-2ec8badc52bf",
"object": "chat.completion",
"created": 1789336345,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "I'll check the price and place the order.",
"reasoning_content": "",
"tool_calls": [
{
"index": 0,
"id": "call_00_ET_BM9jLYCef01MxRBflFrO4642",
"type": "function",
"function": {
"name": "price_of",
"arguments": "{\"item\": \"milk\"}"
}
},
{
"index": 1,
"id": "call_01_ET_NOAtXDqdPY73N5WjuaUF6237",
"type": "function",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 4}"
}
}
]
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 431,
"completion_tokens": 93,
"total_tokens": 524,
"prompt_tokens_details": {
"cached_tokens": 256
},
"completion_tokens_details": {
"reasoning_tokens": 0
},
"prompt_cache_hit_tokens": 256,
"prompt_cache_miss_tokens": 175
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | I'll check the price and place the order. price_of({"item": "milk"}) place_order({"item": "milk", "quantity": 4}) |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | How much is milk, and please order 4 bottles. |
| [2] | ai | I'll check the price and place the order. price_of({"item": "milk"}) place_order({"item": "milk", "quantity": 4}) |
| [3] | tool | 1.20 for milk |
| [4] | tool | ordered 4 x milk |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. A write: the total counts it, once dispatched. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. A write: the total counts it, once dispatched.", "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 an item, in pounds. A read: the total ignores it. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of an item, in pounds. A read: the total ignores it.", "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 | 1385 |
| 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, and please order 4 bottles.",
"role": "user"
},
{
"content": "I'll check the price and place the order.",
"role": "assistant",
"tool_calls": [
{
"type": "function",
"id": "call_00_ET_BM9jLYCef01MxRBflFrO4642",
"function": {
"name": "price_of",
"arguments": "{\"item\": \"milk\"}"
}
},
{
"type": "function",
"id": "call_01_ET_NOAtXDqdPY73N5WjuaUF6237",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 4}"
}
}
]
},
{
"content": "1.20 for milk",
"role": "tool",
"tool_call_id": "call_00_ET_BM9jLYCef01MxRBflFrO4642"
},
{
"content": "ordered 4 x milk",
"role": "tool",
"tool_call_id": "call_01_ET_NOAtXDqdPY73N5WjuaUF6237"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "place_order",
"description": "Order a quantity of an item. A write: the total counts it, once dispatched.",
"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 an item, in pounds. A read: the total ignores it.",
"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:27 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 4fc932d2ede176ec3a0838233aa83ba4.cloudfront.net (CloudFront) |
| x-amz-cf-id | 7o68QO673ASe6s-_1LAvQrFaQDxhcEVbVC4TO2S99oPNvYq-fY_M2w== |
| x-amz-cf-pop | DEN53-P1 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | 58dee208dc68b750204785d9ac176243 |
{
"id": "a105e580-9e1b-4a9c-bff6-6804d3c23c78",
"object": "chat.completion",
"created": 1789336347,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Milk is \u00a31.20 each (note: bottles, not necessarily litres \u2014 I ordered 4 for you). Your order for 4 bottles of milk has been placed, so that's \u00a34.80 total.",
"reasoning_content": "Answer briefly."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 554,
"completion_tokens": 49,
"total_tokens": 603,
"prompt_tokens_details": {
"cached_tokens": 384
},
"completion_tokens_details": {
"reasoning_tokens": 3
},
"prompt_cache_hit_tokens": 384,
"prompt_cache_miss_tokens": 170
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | Milk is £1.20 each (note: bottles, not necessarily litres — I ordered 4 for you). Your order for 4 bottles of milk has been placed, so that's £4.80 total. |