ch23_mcp

show:
mock turns=0 · messages=0
live turns=0 · messages=0
scenario tool_discovered_not_declared
scenario tool_discovered_not_declared · 4.2ms
tools/list {"catalog": [{"name": "price_of", "description": "The current shelf price of an item, in pounds.", "schema": {"description": "The current shelf price of an item, in pounds.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "price_of", "type": "object"}}, {"name": "stock_of", "description": "How many units of an item are on the shelf.", "schema": {"description": "How many units of an item are on the shelf.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "stock_of", "type": "object"}}, {"name": "hours_of", "description": "The store's opening hours on a given day.", "schema": {"description": "The store's opening hours on a given day.", "properties": {"day": {"title": "Day", "type": "string"}}, "required": ["day"], "title": "hours_of", "type": "object"}}]}
turn 1 · 3.3ms · asked for: price_of
model mock · 3.0ms · asked for: price_of
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanHow much is milk?
declared tools (3)
tooldescriptionschema
price_ofThe current shelf price of an item, in pounds.{"description": "The current shelf price of an item, in pounds.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "price_of", "type": "object"}
stock_ofHow many units of an item are on the shelf.{"description": "How many units of an item are on the shelf.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "stock_of", "type": "object"}
hours_ofThe store's opening hours on a given day.{"description": "The store's opening hours on a given day.", "properties": {"day": {"title": "Day", "type": "string"}}, "required": ["day"], "title": "hours_of", "type": "object"}
tools declared to the mock model {"names": ["price_of", "stock_of", "hours_of"], "consulted": false}
context ignored by the mock model {"messages": 2, "roles": ["system", "human"]}
reply
rolecontent
[0]ai
price_of({"item": "milk"})
tool price_of · 0.2ms · given: item=milk · returned: 1.20 for milk
args {"item": "milk"}
result {"value": "1.20 for milk"}
turn 2 · 0.3ms · responded with: Milk is 1.20.
model mock · 0.3ms · responded with: Milk is 1.20.
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanHow much is milk?
[2]ai
price_of({"item": "milk"})
[3]tool1.20 for milk
declared tools (3)
tooldescriptionschema
price_ofThe current shelf price of an item, in pounds.{"description": "The current shelf price of an item, in pounds.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "price_of", "type": "object"}
stock_ofHow many units of an item are on the shelf.{"description": "How many units of an item are on the shelf.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "stock_of", "type": "object"}
hours_ofThe store's opening hours on a given day.{"description": "The store's opening hours on a given day.", "properties": {"day": {"title": "Day", "type": "string"}}, "required": ["day"], "title": "hours_of", "type": "object"}
tools declared to the mock model {"names": ["price_of", "stock_of", "hours_of"], "consulted": false}
context ignored by the mock model {"messages": 4, "roles": ["system", "human", "ai", "tool"]}
reply
rolecontent
[0]aiMilk is 1.20.
scenario tool_discovered_not_declared · 2287.6ms
tools/list {"catalog": [{"name": "price_of", "description": "The current shelf price of an item, in pounds.", "schema": {"description": "The current shelf price of an item, in pounds.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "price_of", "type": "object"}}, {"name": "stock_of", "description": "How many units of an item are on the shelf.", "schema": {"description": "How many units of an item are on the shelf.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "stock_of", "type": "object"}}, {"name": "hours_of", "description": "The store's opening hours on a given day.", "schema": {"description": "The store's opening hours on a given day.", "properties": {"day": {"title": "Day", "type": "string"}}, "required": ["day"], "title": "hours_of", "type": "object"}}]}
turn 1 · 1228.3ms · 411 in / 39 out · asked for: price_of
model live · 1227.1ms (model provider 1036.9 · library 190.2) · 411 in / 39 out · asked for: price_of
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanHow much is milk?
declared tools (3)
tooldescriptionschema
price_ofThe current shelf price of an item, in pounds.{"description": "The current shelf price of an item, in pounds.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "price_of", "type": "object"}
stock_ofHow many units of an item are on the shelf.{"description": "How many units of an item are on the shelf.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "stock_of", "type": "object"}
hours_ofThe store's opening hours on a given day.{"description": "The store's opening hours on a given day.", "properties": {"day": {"title": "Day", "type": "string"}}, "required": ["day"], "title": "hours_of", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length806
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.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": "price_of",
        "description": "The current shelf price of an item, in pounds.",
        "parameters": {
          "properties": {
            "item": {
              "type": "string"
            }
          },
          "required": [
            "item"
          ],
          "type": "object"
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "stock_of",
        "description": "How many units of an item are on the shelf.",
        "parameters": {
          "properties": {
            "item": {
              "type": "string"
            }
          },
          "required": [
            "item"
          ],
          "type": "object"
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "hours_of",
        "description": "The store's opening hours on a given day.",
        "parameters": {
          "properties": {
            "day": {
              "type": "string"
            }
          },
          "required": [
            "day"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:53:33 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 d367a81605c570be8f51546cf4468ece.cloudfront.net (CloudFront)
x-amz-cf-id0PrMNh20gcVz2kGyEGyQXSvMhtR4cy8KDBtj901DNLqZTNTwegzCZA==
x-amz-cf-popDEN53-P4
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-idab9d7cc0ead7b5ced7816abcbbb280c8
{
  "id": "e9ea1cef-bcbc-4e7a-a267-da62f1509c90",
  "object": "chat.completion",
  "created": 1789336413,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_ET_Tr6HUTk8I25DaoimVcXA6232",
            "type": "function",
            "function": {
              "name": "price_of",
              "arguments": "{\"item\": \"milk\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 411,
    "completion_tokens": 39,
    "total_tokens": 450,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 155
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
price_of({"item": "milk"})
tool price_of · 1.1ms · given: item=milk · returned: 1.20 for milk
args {"item": "milk"}
result {"value": "1.20 for milk"}
turn 2 · 1058.7ms · 467 in / 9 out · responded with: Milk is £1.20.
model live · 1058.7ms (model provider 1047.0 · library 11.7) · 467 in / 9 out · responded with: Milk is £1.20.
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanHow much is milk?
[2]ai
price_of({"item": "milk"})
[3]tool1.20 for milk
declared tools (3)
tooldescriptionschema
price_ofThe current shelf price of an item, in pounds.{"description": "The current shelf price of an item, in pounds.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "price_of", "type": "object"}
stock_ofHow many units of an item are on the shelf.{"description": "How many units of an item are on the shelf.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "stock_of", "type": "object"}
hours_ofThe store's opening hours on a given day.{"description": "The store's opening hours on a given day.", "properties": {"day": {"title": "Day", "type": "string"}}, "required": ["day"], "title": "hours_of", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length1081
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.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_Tr6HUTk8I25DaoimVcXA6232",
          "function": {
            "name": "price_of",
            "arguments": "{\"item\": \"milk\"}"
          }
        }
      ]
    },
    {
      "content": "1.20 for milk",
      "role": "tool",
      "tool_call_id": "call_00_ET_Tr6HUTk8I25DaoimVcXA6232"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "price_of",
        "description": "The current shelf price of an item, in pounds.",
        "parameters": {
          "properties": {
            "item": {
              "type": "string"
            }
          },
          "required": [
            "item"
          ],
          "type": "object"
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "stock_of",
        "description": "How many units of an item are on the shelf.",
        "parameters": {
          "properties": {
            "item": {
              "type": "string"
            }
          },
          "required": [
            "item"
          ],
          "type": "object"
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "hours_of",
        "description": "The store's opening hours on a given day.",
        "parameters": {
          "properties": {
            "day": {
              "type": "string"
            }
          },
          "required": [
            "day"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:53:34 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 f111faa3f37b2169cefb225b0f246234.cloudfront.net (CloudFront)
x-amz-cf-idqw58ZXPXTUlxz2RluaWopOUHNYvD9hA8NLIZW6daWmZZVyuGJviW2Q==
x-amz-cf-popDEN52-P2
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id3c6c48a52704ce0d5f5106a59e4dfe62
{
  "id": "155bcc4a-ae19-4f1a-8829-b2d86d6306cc",
  "object": "chat.completion",
  "created": 1789336414,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Milk is \u00a31.20.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 467,
    "completion_tokens": 9,
    "total_tokens": 476,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 211
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiMilk is £1.20.
scenario resource_lands_without_a_round_trip
scenario resource_lands_without_a_round_trip · 0.2ms
resources/list {"catalog": [{"uri": "file:///pricing/policy.md", "name": "pricing-policy", "description": "This quarter's pricing policy", "mimeType": "text/markdown"}]}
resources/read {"uri": "file:///pricing/policy.md", "content": "Round every price to the nearest 5p."}
turn 1 · 0.1ms · responded with: Milk should be rounded to the nearest 5p.
model mock · 0.1ms · responded with: Milk should be rounded to the nearest 5p.
context sent — 3 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanReference document: Round every price to the nearest 5p.
[2]humanHow much should milk cost, rounded per the policy?
context ignored by the mock model {"messages": 3, "roles": ["system", "human", "human"]}
reply
rolecontent
[0]aiMilk should be rounded to the nearest 5p.
scenario resource_lands_without_a_round_trip · 1739.3ms
resources/list {"catalog": [{"uri": "file:///pricing/policy.md", "name": "pricing-policy", "description": "This quarter's pricing policy", "mimeType": "text/markdown"}]}
resources/read {"uri": "file:///pricing/policy.md", "content": "Round every price to the nearest 5p."}
turn 1 · 1739.2ms · 67 in / 182 out · responded with: I need the unrounded price of milk to apply the rounding policy. No milk price is provided... (27 more characters)
model live · 1739.2ms (model provider 1731.0 · library 8.3) · 67 in / 182 out · responded with: I need the unrounded price of milk to apply the rounding policy. No milk price is provided... (27 more characters)
context sent — 3 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanReference document: Round every price to the nearest 5p.
[2]humanHow much should milk cost, rounded per the policy?
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (7)
temperature, max_tokens, top_p, stop, seed, tools, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length310
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.14.7
{
  "messages": [
    {
      "content": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "Reference document:\nRound every price to the nearest 5p.",
      "role": "user"
    },
    {
      "content": "How much should milk cost, rounded per the policy?",
      "role": "user"
    }
  ],
  "model": "deepseek-flash",
  "stream": false
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:53:35 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 975ade3143a5f26adabbac0540e470ce.cloudfront.net (CloudFront)
x-amz-cf-idQlStBBlvlJCi3UfqvHAZM8YaEyZUEU2YmRHNNjJ329JW1w3IshHGhw==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id8e8713b3ca5ec5f1d96b3c91be5b6bf7
{
  "id": "547cf9cd-1c68-49f6-9608-720feeb84307",
  "object": "chat.completion",
  "created": 1789336415,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "I need the unrounded price of milk to apply the rounding policy. No milk price is provided in the reference document.",
        "reasoning_content": "We need answer user. Need infer reference doc? They say Reference document: Round every price to the nearest 5p. How much should milk cost, rounded per policy? We need know milk price. No price given. Maybe trick? Need ask for unrounded milk price. But maybe reference document has milk? The entire reference doc only says \"Round every price to the nearest 5p.\" There's no milk price. Need answer briefly plainly. We cannot compute without original price. So ask provide milk price. Need mention if milk price is X, round to nearest 5p. But user asks \"How much should milk cost, rounded per policy?\" Could be from some context absent. We answer: Need the unrounded price of milk; no milk price is given."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 67,
    "completion_tokens": 182,
    "total_tokens": 249,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 157
    },
    "prompt_cache_hit_tokens": 0,
    "prompt_cache_miss_tokens": 67
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiI need the unrounded price of milk to apply the rounding policy. No milk price is provided in the reference document.
scenario prompt_seeds_the_conversation
scenario prompt_seeds_the_conversation · 0.2ms
prompts/list {"catalog": [{"name": "price-check", "description": "Ask the current price of a named item", "arguments": [{"name": "item", "description": "the item to price", "required": true}]}]}
prompts/get {"name": "price-check", "arguments": {"item": "butter"}, "messages": [{"role": "system", "content": "You answer briefly and plainly. Use the tools you are given."}, {"role": "human", "content": "What does butter cost right now?"}]}
turn 1 · 0.2ms · responded with: Butter is 1.20.
model mock · 0.2ms · responded with: Butter is 1.20.
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat does butter cost right now?
context ignored by the mock model {"messages": 2, "roles": ["system", "human"]}
reply
rolecontent
[0]aiButter is 1.20.
scenario prompt_seeds_the_conversation · 5139.0ms
prompts/list {"catalog": [{"name": "price-check", "description": "Ask the current price of a named item", "arguments": [{"name": "item", "description": "the item to price", "required": true}]}]}
prompts/get {"name": "price-check", "arguments": {"item": "butter"}, "messages": [{"role": "system", "content": "You answer briefly and plainly. Use the tools you are given."}, {"role": "human", "content": "What does butter cost right now?"}]}
turn 1 · 5138.9ms · 50 in / 784 out · responded with: Butter prices vary too much to give one “right now” number—country, city, store, brand, an... (236 more characters)
model live · 5138.9ms (model provider 5131.3 · library 7.6) · 50 in / 784 out · responded with: Butter prices vary too much to give one “right now” number—country, city, store, brand, an... (236 more characters)
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat does butter cost right now?
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (7)
temperature, max_tokens, top_p, stop, seed, tools, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length206
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.14.7
{
  "messages": [
    {
      "content": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What does butter cost right now?",
      "role": "user"
    }
  ],
  "model": "deepseek-flash",
  "stream": false
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:53:37 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 acb55e8d2b8ad7df45561a8bccaaa688.cloudfront.net (CloudFront)
x-amz-cf-idNKYAhUlTbJ6CqosC7F00BELeWamz3KSo71YUk4PF3T52j3sgmtNpkg==
x-amz-cf-popDEN52-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id9b019d49bda6045ed26ece9e6924e6c9
{
  "id": "4722a0be-eb90-49c4-b478-f4e5fc5e1fb2",
  "object": "chat.completion",
  "created": 1789336417,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Butter prices vary too much to give one \u201cright now\u201d number\u2014country, city, store, brand, and type all matter.\n\nIn the U.S., regular 1-lb butter is commonly around **$4\u2013$6** at supermarkets, with organic/European-style often **$6\u2013$9+**. I can\u2019t check live prices, so tell me your location and brand if you want a closer estimate.",
        "reasoning_content": "We need answer user asks \"What does butter cost right now?\" Need current price. We need tools? We have no explicit tools listed except maybe web? Wait system says \"You answer briefly and plainly. Use the tools you are given.\" But in this interface, no tools listed. We need answer. Need current butter cost. We don't know location. Butter prices vary by region, type, store. Need maybe ask clarifying? Could give typical US average? \"Right now\" requires current data. We don't have browsing. We should be honest no live access. Maybe mention USDA average for butter? But current date 2026-05-09. Knowledge cutoff 2024. Can't know. We can say depends on where and what kind; in the U.S., recent average retail price for a 1-lb stick of butter has been around $4\u2013$5, but I can't check live prices. Need maybe if you mean USDA average? Let's craft brief. Could ask location. But user likely expects answer. We can say \"I can't check live prices, so I can't give an exact 'right now' price. In the U.S., a 1-lb package of regular butter is commonly around $4\u2013$6 depending on brand/store/region; organic or European-style can be $6\u2013$9+. Tell me your country/city and brand and I can help estimate.\" But maybe \"right now\" as in current market? Butter futures? CME butter spot? There is CME cash butter price. Could answer if they mean commodity price: CME spot butter? As of knowledge cutoff, maybe around $2.50/lb? Actually butter prices in 2024: CME spot butter price around $3.10/lb? USDA AMS butter price? Let's recall.\n\nButter prices: In 2024, US average retail butter price per pound: $4.88? In 2023, $4.66? In 2024 maybe $4.88. In 2025? We don't know. Current 2026. Without live data impossible.\n\nMaybe can use tools? The system says use tools given, but none. We could maybe not. Final should be concise.\n\nMaybe answer: \"I can\u2019t access live pricing, so I can\u2019t say exactly. In the U.S., a 1-lb stick/package is typically ~$4\u2013$6 at supermarkets; warehouse clubs can be cheaper, organic/European-style higher. If you tell me your city and brand, I can give a better ballpark.\" That's safe.\n\nBut maybe we can mention \"USDA reported average retail price for butter (1 lb) was $4.87 in [month]\"? Need avoid outdated specifics. Since current date 2026, can't.\n\nCould we answer in a way that asks for location. The prompt \"What does butter cost right now?\" We can say \"Depends\u2014where are you, and what type? I don't have live price access.\" Brief.\n\nWe need satisfy. Maybe include \"If you mean the U.S. average, the last reliable federal data I have was around $4.50\u2013$5.00 per pound, but that's not current.\" However \"last reliable\" might be 2024. Maybe okay.\n\nLet's final with clarifying. Use plain. "
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 50,
    "completion_tokens": 784,
    "total_tokens": 834,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 695
    },
    "prompt_cache_hit_tokens": 0,
    "prompt_cache_miss_tokens": 50
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiButter prices vary too much to give one “right now” number—country, city, store, brand, and type all matter. In the U.S., regular 1-lb butter is commonly around **$4–$6** at supermarkets, with organic/European-style often **$6–$9+**. I can’t check live prices, so tell me your location and brand if you want a closer estimate.
scenario prompt_and_tool_are_two_separate_decisions
scenario prompt_and_tool_are_two_separate_decisions · 0.9ms
prompts/get {"name": "price-check", "messages": [{"role": "system", "content": "You answer briefly and plainly. Use the tools you are given."}, {"role": "human", "content": "What does butter cost right now?"}]}
tools/list {"catalog": [{"name": "price_of", "description": "The current shelf price of an item, in pounds.", "schema": {"description": "The current shelf price of an item, in pounds.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "price_of", "type": "object"}}, {"name": "hours_of", "description": "The store's opening hours on a given day.", "schema": {"description": "The store's opening hours on a given day.", "properties": {"day": {"title": "Day", "type": "string"}}, "required": ["day"], "title": "hours_of", "type": "object"}}, {"name": "stock_of", "description": "How many units of an item are on the shelf.", "schema": {"description": "How many units of an item are on the shelf.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "stock_of", "type": "object"}}]}
turn 1 · 0.5ms · asked for: price_of
model mock · 0.4ms · asked for: price_of
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat does butter cost right now?
declared tools (1)
tooldescriptionschema
price_ofThe current shelf price of an item, in pounds.{"description": "The current shelf price of an item, in pounds.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "price_of", "type": "object"}
tools declared to the mock model {"names": ["price_of"], "consulted": false}
context ignored by the mock model {"messages": 2, "roles": ["system", "human"]}
reply
rolecontent
[0]ai
price_of({"item": "butter"})
tool price_of · 0.1ms · given: item=butter · returned: 1.20 for butter
args {"item": "butter"}
result {"value": "1.20 for butter"}
turn 2 · 0.2ms · responded with: Butter is 1.20.
model mock · 0.1ms · responded with: Butter is 1.20.
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat does butter cost right now?
[2]ai
price_of({"item": "butter"})
[3]tool1.20 for butter
declared tools (1)
tooldescriptionschema
price_ofThe current shelf price of an item, in pounds.{"description": "The current shelf price of an item, in pounds.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "price_of", "type": "object"}
tools declared to the mock model {"names": ["price_of"], "consulted": false}
context ignored by the mock model {"messages": 4, "roles": ["system", "human", "ai", "tool"]}
reply
rolecontent
[0]aiButter is 1.20.
scenario prompt_and_tool_are_two_separate_decisions · 2134.9ms
prompts/get {"name": "price-check", "messages": [{"role": "system", "content": "You answer briefly and plainly. Use the tools you are given."}, {"role": "human", "content": "What does butter cost right now?"}]}
tools/list {"catalog": [{"name": "price_of", "description": "The current shelf price of an item, in pounds.", "schema": {"description": "The current shelf price of an item, in pounds.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "price_of", "type": "object"}}, {"name": "hours_of", "description": "The store's opening hours on a given day.", "schema": {"description": "The store's opening hours on a given day.", "properties": {"day": {"title": "Day", "type": "string"}}, "required": ["day"], "title": "hours_of", "type": "object"}}, {"name": "stock_of", "description": "How many units of an item are on the shelf.", "schema": {"description": "How many units of an item are on the shelf.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "stock_of", "type": "object"}}]}
turn 1 · 1003.8ms · 312 in / 53 out · asked for: price_of
model live · 1002.9ms (model provider 988.6 · library 14.3) · 312 in / 53 out · asked for: price_of
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat does butter cost right now?
declared tools (1)
tooldescriptionschema
price_ofThe current shelf price of an item, in pounds.{"description": "The current shelf price of an item, in pounds.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "price_of", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length421
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.14.7
{
  "messages": [
    {
      "content": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What does butter cost right now?",
      "role": "user"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "price_of",
        "description": "The current shelf price of an item, in pounds.",
        "parameters": {
          "properties": {
            "item": {
              "type": "string"
            }
          },
          "required": [
            "item"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:53:42 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 3c8d0ab13267e31118fd28e835a3b4e4.cloudfront.net (CloudFront)
x-amz-cf-idyqrPFLmP62qazDJSmSPyx0q-W53tnCMvjh9ot0RId124yVd_eHBc8Q==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id3157ff6ca069ad646439b299cae4123b
{
  "id": "9f879448-ee8f-4261-8508-9fa9542a0ae4",
  "object": "chat.completion",
  "created": 1789336422,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "The user wants the price of butter. Let me call the tool.",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_pA1VEZqsSsZU43Yk1NEw4244",
            "type": "function",
            "function": {
              "name": "price_of",
              "arguments": "{\"item\": \"butter\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 312,
    "completion_tokens": 53,
    "total_tokens": 365,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 14
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 184
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
price_of({"item": "butter"})
tool price_of · 0.8ms · given: item=butter · returned: 1.20 for butter
args {"item": "butter"}
result {"value": "1.20 for butter"}
turn 2 · 1129.8ms · 382 in / 27 out · responded with: Butter is currently £1.20.
model live · 1129.8ms (model provider 1116.7 · library 13.1) · 382 in / 27 out · responded with: Butter is currently £1.20.
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanWhat does butter cost right now?
[2]ai
price_of({"item": "butter"})
[3]tool1.20 for butter
declared tools (1)
tooldescriptionschema
price_ofThe current shelf price of an item, in pounds.{"description": "The current shelf price of an item, in pounds.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "price_of", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length774
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.14.7
{
  "messages": [
    {
      "content": "You answer briefly and plainly. Use the tools you are given.",
      "role": "system"
    },
    {
      "content": "What does butter cost right now?",
      "role": "user"
    },
    {
      "content": null,
      "role": "assistant",
      "tool_calls": [
        {
          "type": "function",
          "id": "call_00_pA1VEZqsSsZU43Yk1NEw4244",
          "function": {
            "name": "price_of",
            "arguments": "{\"item\": \"butter\"}"
          }
        }
      ],
      "reasoning_content": "The user wants the price of butter. Let me call the tool."
    },
    {
      "content": "1.20 for butter",
      "role": "tool",
      "tool_call_id": "call_00_pA1VEZqsSsZU43Yk1NEw4244"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "price_of",
        "description": "The current shelf price of an item, in pounds.",
        "parameters": {
          "properties": {
            "item": {
              "type": "string"
            }
          },
          "required": [
            "item"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:53:43 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 fdb71c154448c5637ac452d623bb2ad6.cloudfront.net (CloudFront)
x-amz-cf-idThoWfASiqk2e46pxdPKEl1EBLzlMDbQ2bo1fvIefzY_B8UuuqPK9jA==
x-amz-cf-popDEN52-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id057e2aabc18b05a765574065914f96d8
{
  "id": "c5f0a522-506f-482b-a89a-bdcc7044d925",
  "object": "chat.completion",
  "created": 1789336423,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Butter is currently \u00a31.20.",
        "reasoning_content": "The tool returned \"1.20 for butter\" \u2014 presumably \u00a31.20."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 382,
    "completion_tokens": 27,
    "total_tokens": 409,
    "prompt_tokens_details": {
      "cached_tokens": 128
    },
    "completion_tokens_details": {
      "reasoning_tokens": 17
    },
    "prompt_cache_hit_tokens": 128,
    "prompt_cache_miss_tokens": 254
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiButter is currently £1.20.
scenario dispatch_table_order_is_not_a_promise
scenario dispatch_table_order_is_not_a_promise · 1.6ms
discovered_twice {"first_order": ["price_of", "stock_of", "hours_of"], "second_order": ["stock_of", "hours_of", "price_of"], "same_content": true, "same_order": false, "fingerprint_first": "3585f1e6510f", "fingerprint_second": "158cb46fca11"}
turn 1 · 1.0ms · asked for: price_of
model mock · 0.9ms · asked for: price_of
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanHow much is milk?
declared tools (3)
tooldescriptionschema
price_ofThe current shelf price of an item, in pounds.{"description": "The current shelf price of an item, in pounds.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "price_of", "type": "object"}
stock_ofHow many units of an item are on the shelf.{"description": "How many units of an item are on the shelf.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "stock_of", "type": "object"}
hours_ofThe store's opening hours on a given day.{"description": "The store's opening hours on a given day.", "properties": {"day": {"title": "Day", "type": "string"}}, "required": ["day"], "title": "hours_of", "type": "object"}
tools declared to the mock model {"names": ["price_of", "stock_of", "hours_of"], "consulted": false}
context ignored by the mock model {"messages": 2, "roles": ["system", "human"]}
reply
rolecontent
[0]ai
price_of({"item": "milk"})
tool price_of · 0.1ms · given: item=milk · returned: 1.20 for milk
args {"item": "milk"}
result {"value": "1.20 for milk"}
turn 2 · 0.2ms · responded with: Milk is 1.20.
model mock · 0.2ms · responded with: Milk is 1.20.
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanHow much is milk?
[2]ai
price_of({"item": "milk"})
[3]tool1.20 for milk
declared tools (3)
tooldescriptionschema
price_ofThe current shelf price of an item, in pounds.{"description": "The current shelf price of an item, in pounds.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "price_of", "type": "object"}
stock_ofHow many units of an item are on the shelf.{"description": "How many units of an item are on the shelf.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "stock_of", "type": "object"}
hours_ofThe store's opening hours on a given day.{"description": "The store's opening hours on a given day.", "properties": {"day": {"title": "Day", "type": "string"}}, "required": ["day"], "title": "hours_of", "type": "object"}
tools declared to the mock model {"names": ["price_of", "stock_of", "hours_of"], "consulted": false}
context ignored by the mock model {"messages": 4, "roles": ["system", "human", "ai", "tool"]}
reply
rolecontent
[0]aiMilk is 1.20.
scenario dispatch_table_order_is_not_a_promise · 2165.3ms
discovered_twice {"first_order": ["price_of", "stock_of", "hours_of"], "second_order": ["stock_of", "hours_of", "price_of"], "same_content": true, "same_order": false, "fingerprint_first": "3585f1e6510f", "fingerprint_second": "158cb46fca11"}
turn 1 · 1145.0ms · 411 in / 39 out · asked for: price_of
model live · 1144.2ms (model provider 1130.1 · library 14.2) · 411 in / 39 out · asked for: price_of
context sent — 2 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanHow much is milk?
declared tools (3)
tooldescriptionschema
price_ofThe current shelf price of an item, in pounds.{"description": "The current shelf price of an item, in pounds.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "price_of", "type": "object"}
stock_ofHow many units of an item are on the shelf.{"description": "How many units of an item are on the shelf.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "stock_of", "type": "object"}
hours_ofThe store's opening hours on a given day.{"description": "The store's opening hours on a given day.", "properties": {"day": {"title": "Day", "type": "string"}}, "required": ["day"], "title": "hours_of", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length806
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.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": "price_of",
        "description": "The current shelf price of an item, in pounds.",
        "parameters": {
          "properties": {
            "item": {
              "type": "string"
            }
          },
          "required": [
            "item"
          ],
          "type": "object"
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "stock_of",
        "description": "How many units of an item are on the shelf.",
        "parameters": {
          "properties": {
            "item": {
              "type": "string"
            }
          },
          "required": [
            "item"
          ],
          "type": "object"
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "hours_of",
        "description": "The store's opening hours on a given day.",
        "parameters": {
          "properties": {
            "day": {
              "type": "string"
            }
          },
          "required": [
            "day"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:53:44 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 b1a94c3ca6429736112e2213a359c78a.cloudfront.net (CloudFront)
x-amz-cf-id417kOtVtPbcRivb3c5Qs6FfH1ILQ3bc85DV0-kfJTOhMWxNzQiJAyQ==
x-amz-cf-popDEN53-P3
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id61d9f3d0095f5515a3c2bfdefbab64f5
{
  "id": "6cf2d570-cfd1-49f2-9618-eec85d3f3a16",
  "object": "chat.completion",
  "created": 1789336424,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "",
        "reasoning_content": "",
        "tool_calls": [
          {
            "index": 0,
            "id": "call_00_ET_UnZ82LD1XJbPKmUslQ656437",
            "type": "function",
            "function": {
              "name": "price_of",
              "arguments": "{\"item\": \"milk\"}"
            }
          }
        ]
      },
      "logprobs": null,
      "finish_reason": "tool_calls"
    }
  ],
  "usage": {
    "prompt_tokens": 411,
    "completion_tokens": 39,
    "total_tokens": 450,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 155
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]ai
price_of({"item": "milk"})
tool price_of · 0.7ms · given: item=milk · returned: 1.20 for milk
args {"item": "milk"}
result {"value": "1.20 for milk"}
turn 2 · 1019.0ms · 467 in / 9 out · responded with: Milk is £1.20.
model live · 1019.0ms (model provider 1005.5 · library 13.4) · 467 in / 9 out · responded with: Milk is £1.20.
context sent — 4 message(s)
rolecontent
[0]systemYou answer briefly and plainly. Use the tools you are given.
[1]humanHow much is milk?
[2]ai
price_of({"item": "milk"})
[3]tool1.20 for milk
declared tools (3)
tooldescriptionschema
price_ofThe current shelf price of an item, in pounds.{"description": "The current shelf price of an item, in pounds.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "price_of", "type": "object"}
stock_ofHow many units of an item are on the shelf.{"description": "How many units of an item are on the shelf.", "properties": {"item": {"title": "Item", "type": "string"}}, "required": ["item"], "title": "stock_of", "type": "object"}
hours_ofThe store's opening hours on a given day.{"description": "The store's opening hours on a given day.", "properties": {"day": {"title": "Day", "type": "string"}}, "required": ["day"], "title": "hours_of", "type": "object"}
wire request
attempt
1
method
POST
url
https://api.deepseek.com/v1/chat/completions
defaulted (6)
temperature, max_tokens, top_p, stop, seed, tool_choice
headers (18)
show
acceptapplication/json
accept-encodinggzip, deflate, zstd
authorizationnot recorded
connectionkeep-alive
content-length1081
content-typeapplication/json
hostapi.deepseek.com
user-agentOpenAI/Python 3.6.0
x-stainless-archarm64
x-stainless-asyncfalse
x-stainless-langpython
x-stainless-osMacOS
x-stainless-package-version3.6.0
x-stainless-raw-responsetrue
x-stainless-read-timeout60.0
x-stainless-retry-count0
x-stainless-runtimeCPython
x-stainless-runtime-version3.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_UnZ82LD1XJbPKmUslQ656437",
          "function": {
            "name": "price_of",
            "arguments": "{\"item\": \"milk\"}"
          }
        }
      ]
    },
    {
      "content": "1.20 for milk",
      "role": "tool",
      "tool_call_id": "call_00_ET_UnZ82LD1XJbPKmUslQ656437"
    }
  ],
  "model": "deepseek-flash",
  "stream": false,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "price_of",
        "description": "The current shelf price of an item, in pounds.",
        "parameters": {
          "properties": {
            "item": {
              "type": "string"
            }
          },
          "required": [
            "item"
          ],
          "type": "object"
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "stock_of",
        "description": "How many units of an item are on the shelf.",
        "parameters": {
          "properties": {
            "item": {
              "type": "string"
            }
          },
          "required": [
            "item"
          ],
          "type": "object"
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "hours_of",
        "description": "The store's opening hours on a given day.",
        "parameters": {
          "properties": {
            "day": {
              "type": "string"
            }
          },
          "required": [
            "day"
          ],
          "type": "object"
        }
      }
    }
  ]
}
wire response
status
200
headers (15)
show
access-control-allow-credentialstrue
connectionkeep-alive
content-encodinggzip
content-typeapplication/json
dateSun, 13 Sep 2026 21:53:45 GMT
serverelb
strict-transport-securitymax-age=31536000; includeSubDomains; preload
transfer-encodingchunked
varyorigin, access-control-request-method, access-control-request-headers
via1.1 3c8d0ab13267e31118fd28e835a3b4e4.cloudfront.net (CloudFront)
x-amz-cf-idri4n1bfRk2GDpK7umFyDeVA3yimLVwzcBlEL0K_mg7GqjT03TyCqPQ==
x-amz-cf-popDEN53-P6
x-cacheMiss from cloudfront
x-content-type-optionsnosniff
x-ds-trace-id9944baae2a18f7cc545b84b1fc41070b
{
  "id": "cafdb30e-05b9-4076-b863-a5c73d505a91",
  "object": "chat.completion",
  "created": 1789336425,
  "model": "deepseek-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Milk is \u00a31.20.",
        "reasoning_content": ""
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 467,
    "completion_tokens": 9,
    "total_tokens": 476,
    "prompt_tokens_details": {
      "cached_tokens": 256
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    },
    "prompt_cache_hit_tokens": 256,
    "prompt_cache_miss_tokens": 211
  },
  "system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}
reply
rolecontent
[0]aiMilk is £1.20.