| 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. A write: routed through confirmation first. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. A write: routed through confirmation first.", "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: routed directly. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of an item, in pounds. A read: routed directly.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | place_order({"item": "milk", "quantity": 2}) |
| 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 | ordered 2 x milk |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. A write: routed through confirmation first. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. A write: routed through confirmation first.", "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: routed directly. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of an item, in pounds. A read: routed directly.", "properties": {"item": {"$ref": "#/$defs/GroceryItem"}}, "required": ["item"], "title": "price_of", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | Ordered 2 bottles of milk. |
| 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. A write: routed through confirmation first. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. A write: routed through confirmation first.", "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: routed directly. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of an item, in pounds. A read: routed directly.", "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 | 795 |
| 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. A write: routed through confirmation first.",
"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: routed directly.",
"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:17 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 153d2cbd7c83442a049eab26571069f6.cloudfront.net (CloudFront) |
| x-amz-cf-id | Hi5MNEFGuiotz45M8ma3fHy-DCNCasjl7qrjIm5rN4mcnbD2GxpakQ== |
| x-amz-cf-pop | DEN53-P6 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | 7a5b6930741847e998022e2b1340a89a |
{
"id": "f83d8f02-ab2a-4258-80e3-96d6f8d550a9",
"object": "chat.completion",
"created": 1789336337,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "",
"reasoning_content": "The user wants to order 2 bottles of milk. I should just place the order. Maybe check price? Not necessary. Let me place the order.\n\nNote: place_order is a write routed through confirmation. Let me call it.",
"tool_calls": [
{
"index": 0,
"id": "call_00_6pBNCumwqi6ooR2JlYIH6286",
"type": "function",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 2}"
}
}
]
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 421,
"completion_tokens": 102,
"total_tokens": 523,
"prompt_tokens_details": {
"cached_tokens": 256
},
"completion_tokens_details": {
"reasoning_tokens": 47
},
"prompt_cache_hit_tokens": 256,
"prompt_cache_miss_tokens": 165
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | place_order({"item": "milk", "quantity": 2}) |
| 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 | ordered 2 x milk |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. A write: routed through confirmation first. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. A write: routed through confirmation first.", "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: routed directly. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of an item, in pounds. A read: routed directly.", "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 | 1318 |
| 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_6pBNCumwqi6ooR2JlYIH6286",
"function": {
"name": "place_order",
"arguments": "{\"item\": \"milk\", \"quantity\": 2}"
}
}
],
"reasoning_content": "The user wants to order 2 bottles of milk. I should just place the order. Maybe check price? Not necessary. Let me place the order.\n\nNote: place_order is a write routed through confirmation. Let me call it."
},
{
"content": "ordered 2 x milk",
"role": "tool",
"tool_call_id": "call_00_6pBNCumwqi6ooR2JlYIH6286"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "place_order",
"description": "Order a quantity of an item. A write: routed through confirmation first.",
"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: routed directly.",
"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:18 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 053c5da1899ec0e6bd16002f05ca768a.cloudfront.net (CloudFront) |
| x-amz-cf-id | j4kA1S0xR54R6uVqsSVU2zZyuo_pQvk-IRYUPy5ZoEu7-_UqZ9RrAw== |
| x-amz-cf-pop | DEN53-P6 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | 3dd40c3a29d351bc4bfb5fd96d9ff416 |
{
"id": "c89ac149-dd1c-43ec-9601-f95f1eb11f6e",
"object": "chat.completion",
"created": 1789336338,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Done \u2014 ordered 2 milk.",
"reasoning_content": ""
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 540,
"completion_tokens": 8,
"total_tokens": 548,
"prompt_tokens_details": {
"cached_tokens": 384
},
"completion_tokens_details": {
"reasoning_tokens": 0
},
"prompt_cache_hit_tokens": 384,
"prompt_cache_miss_tokens": 156
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | Done — ordered 2 milk. |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Use the tools you are given. |
| [1] | human | How much is milk, and how much are chips? |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. A write: routed through confirmation first. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. A write: routed through confirmation first.", "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: routed directly. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of an item, in pounds. A read: routed directly.", "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 how much are chips? |
| tool | description | schema |
|---|---|---|
| place_order | Order a quantity of an item. A write: routed through confirmation first. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "Order a quantity of an item. A write: routed through confirmation first.", "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: routed directly. | {"$defs": {"GroceryItem": {"enum": ["bread", "butter", "chips", "milk"], "type": "string"}}, "description": "The current shelf price of an item, in pounds. A read: routed directly.", "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 | 812 |
| 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 how much are chips?",
"role": "user"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "place_order",
"description": "Order a quantity of an item. A write: routed through confirmation first.",
"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: routed directly.",
"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:19 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 2870015ca1c40ef5342e0ec500437a72.cloudfront.net (CloudFront) |
| x-amz-cf-id | tXfVyy9MKp1FQdhL7nHai-32eXzdCH2WZmuM7ILtREpGDuRngQyzow== |
| x-amz-cf-pop | DEN53-P6 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | 184a52a9917e310e0782cf92da23b3ca |
{
"id": "673170f4-50d2-4799-9c01-7054860e77dc",
"object": "chat.completion",
"created": 1789336339,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "",
"reasoning_content": "We need price_of milk and price_of chips. Independent calls, same block.",
"tool_calls": [
{
"index": 0,
"id": "call_00_Up4gOe9f8I4AwBbnHcql8655",
"type": "function",
"function": {
"name": "price_of",
"arguments": "{\"item\": \"milk\"}"
}
},
{
"index": 1,
"id": "call_01_KgFli6DHC5ERusyys8YH6646",
"type": "function",
"function": {
"name": "price_of",
"arguments": "{\"item\": \"chips\"}"
}
}
]
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 425,
"completion_tokens": 84,
"total_tokens": 509,
"prompt_tokens_details": {
"cached_tokens": 256
},
"completion_tokens_details": {
"reasoning_tokens": 16
},
"prompt_cache_hit_tokens": 256,
"prompt_cache_miss_tokens": 169
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | price_of({"item": "milk"}) price_of({"item": "chips"}) |