deepseek_multi_turn
Carry on multi-turn conversations with DeepSeek by sending full message history. Use a session key to resume previous dialogues.
Instructions
多轮对话,携带完整历史消息上下文调用 DeepSeek 模型。支持通过 session_key 续接上一次对话
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messages": "<messages>"
},
"name": "deepseek_multi_turn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | 模型名称,默认 deepseek-chat | |
| messages | Yes | 对话历史消息数组,每条消息包含 role 和 content | |
| max_tokens | No | 最大输出 token 数,默认 4096 | |
| session_key | No | 会话标识,用于续接上一次对话。首次对话不传,从返回结果中获取 session_key 后传入即可续接 | |
| temperature | No | 采样温度,默认 1.0 |