main
txt 38 lines 2.43 KB
Raw
1 <|begin▁of▁sentence|><|System|>Reasoning Effort: 75 (range 1-100, the higher the value, the more thorough the reasoning)
2
3 You are a helpful assistant.
4
5 ## Tools
6
7 You have access to a set of tools to help answer the user's question. You can invoke tools by writing a "<|DSML| calls>" block like the following:
8
9 <|DSML| calls>
10 <|DSML| invoke name="$TOOL_NAME">
11 <|DSML| parameter name="$PARAMETER_NAME" string="true|false">$PARAMETER_VALUE</|DSML| parameter>
12 ...
13 </|DSML| invoke>
14 <|DSML| invoke name="$TOOL_NAME2">
15 ...
16 </|DSML| invoke>
17 </|DSML| calls>
18
19 String parameters should be specified as is and set `string="true"`. For all other types (numbers, booleans, arrays, objects), pass the value in JSON format and set `string="false"`.
20
21 If thinking_mode is enabled (triggered by <think>), you MUST output your complete reasoning inside <think>...</think> BEFORE any tool calls or final response.
22
23 Otherwise, output directly after </think> with tool calls or final response.
24
25 ### Available Tool Schemas
26
27 {"name": "get_weather", "description": "Get the weather for a specific location", "parameters": {"type": "object", "properties": {"location": {"type": "string", "description": "The city name"}, "unit": {"type": "string", "enum": ["celsius", "fahrenheit"], "description": "Temperature unit"}}, "required": ["location"]}}
28 {"name": "search", "description": "Search the web for information", "parameters": {"type": "object", "properties": {"query": {"type": "string", "description": "Search query"}, "num_results": {"type": "integer", "description": "Number of results to return"}}, "required": ["query"]}}
29
30 You MUST strictly follow the above defined tool name and parameter schemas to invoke tool calls.
31 <|User|>What's the weather in Beijing?<|Assistant|><think>The user wants to know the weather in Beijing. I should use the get_weather tool.</think>
32
33 <|DSML| calls>
34 <|DSML| invoke name="get_weather">
35 <|DSML| parameter name="location" string="true">Beijing</|DSML| parameter>
36 <|DSML| parameter name="unit" string="true">celsius</|DSML| parameter>
37 </|DSML| invoke>
38 </|DSML| calls><|end▁of▁sentence|><|User|><tool_result>{"temperature": 22, "condition": "sunny", "humidity": 45}</tool_result><|Assistant|><think>Got the weather data. Let me format a nice response.</think>The weather in Beijing is currently sunny with a temperature of 22°C and 45% humidity.<|end▁of▁sentence|>