draft_chapter_with_engine
Automatically retrieve evidence and draft a specified report chapter using a locally configured OpenAI-compatible LLM, offloading long engineering sections to a backend model.
Instructions
(可选自带 Key 工具)使用本地引擎配置的 OpenAI 兼容大模型(如环境变量 DEEPSEEK_API_KEY)直接自动检索并撰写指定章节。
适用场景:当宿主 Agent 希望将超长单章(如 5000~8000 字工程技术章节)卸载给后台高性价比模型(如 DeepSeek)生成时调用。
若未配置 DEEPSEEK_API_KEY / OPENAI_API_KEY,请优先使用 retrieve_report_evidence + 宿主自身大模型直接撰写。
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": {
"report_type": "<report_type>",
"outline_md": "<outline_md>",
"chapter_seq": "<chapter_seq>",
"chapter_title": "<chapter_title>",
"topic": "<topic>"
},
"name": "draft_chapter_with_engine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | ||
| project | No | ||
| outline_md | Yes | ||
| chapter_seq | Yes | ||
| include_web | No | ||
| report_type | Yes | ||
| writing_hint | No | ||
| chapter_title | Yes | ||
| predecessor_chapters | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||