PageSourceSearch

https://api-docs.deepseek.com/zh-cn/assets/js/303b9023.a1eaeb6e.js

js deepseek.com collected 2026-09-24 07:09:50 UTC 3,679 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_deepseek_docs=self.webpackChunk_deepseek_docs||[]).push([[6127],{5597:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>h,frontMatter:()=>r,metadata:()=>l,toc:()=>u});var o=n(80678),a=n(41759);const r={},i=void 0,l={id:"api_samples/thinking_mode_api_example_tool_call_output",title:"thinking_mode_api_example_tool_call_output",description:"",source:"@site/docs/api_samples/thinking_mode_api_example_tool_call_output.md",sourceDirName:"api_samples",slug:"/api_samples/thinking_mode_api_example_tool_call_output",permalink:"/api_samples/thinking_mode_api_example_tool_call_output",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{}},s={},u=[];function c(e){const t={code:"code",pre:"pre",...(0,a.R)(),...e.components};return(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-bash",children:"Turn 1.1\nreasoning_content=\"The user is asking about the weather in Hangzhou tomorrow. I need to get tomorrow's date first, then call the weather function.\"\ncontent=\"Let me check tomorrow's weather in Hangzhou for you. First, let me get tomorrow's date.\"\ntool_calls=[ChatCompletionMessageFunctionToolCall(id='call_00_kw66qNnNto11bSfJVIdlV5Oo', function=Function(arguments='{}', name='get_date'), type='function', index=0)]\ntool result for get_date: 2026-04-19\n\nTurn 1.2\nreasoning_content=\"Today is 2026-04-19, so tomorrow is 2026-04-20. Now I'll call the weather function for Hangzhou.\"\ncontent=''\ntool_calls=[ChatCompletionMessageFunctionToolCall(id='call_00_H2SCW6136vWJGq9SQlBuhVt4', function=Function(arguments='{\"location\": \"Hangzhou\", \"date\": \"2026-04-20\"}', name='get_weather'), type='function', index=0)]\ntool result for get_weather: Cloudy 7~13\xb0C\n\nTurn 1.3\nreasoning_content='The weather result is in. Let me share this with the user.'\ncontent=\"Here's the weather forecast for **Hangzhou tomorrow (April 20, 2026)**:\\n\\n- \ud83c\udf24 **Condition:** Cloudy  \\n- \ud83c\udf21 **Temperature:** 7\xb0C ~ 13\xb0C (45\xb0F ~ 55\xb0F)\\n\\nIt'll be on the cooler side, so you might want to bring a light jacket if you're heading out! Let me know if you need anything else.\"\ntool_calls=None\n\nTurn 2.1\nreasoning_content='The user is asking about the weather in Guangzhou tomorrow. Today is 2026-04-19, so tomorrow is 2026-04-20. I can directly call the weather function.'\ncontent=''\ntool_calls=[ChatCompletionMessageFunctionToolCall(id='call_00_8URkLt5NjmNkVKhDmMcNq9Mo', function=Function(arguments='{\"location\": \"Guangzhou\", \"date\": \"2026-04-20\"}', name='get_weather'), type='function', index=0)]\ntool result for get_weather: Cloudy 7~13\xb0C\n\nTurn 2.2\nreasoning_content='The weather result for Guangzhou is the same as Hangzhou. Let me share this with the user.'\ncontent=\"Here's the weather forecast for **Guangzhou tomorrow (April 20, 2026)**:\\n\\n- \ud83c\udf24 **Condition:** Cloudy  \\n- \ud83c\udf21 **Temperature:** 7\xb0C ~ 13\xb0C (45\xb0F ~ 55\xb0F)\\n\\nIt'll be cool and cloudy, so a light jacket would be a good idea if you're going out. Let me know if there's anything else you'd like to know!\"\ntool_calls=None\n"})})}function h(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(c,{...e})}):c(e)}},41759:(e,t,n)=>{n.d(t,{R:()=>i,x:()=>l});var o=n(26166);const a={},r=o.createContext(a);function i(e){const t=o.useContext(r);return o.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),o.createElement(r.Provider,{value:t},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.