From a9ffb5a446c8d76ce4875b10413d01afc29bb3c0 Mon Sep 17 00:00:00 2001 From: zcr Date: Wed, 8 Apr 2026 10:49:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E7=BD=91=E7=BB=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routers/deep_agent_chat.py | 4 ++-- src/schemas/deep_agent_chat.py | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/routers/deep_agent_chat.py b/src/routers/deep_agent_chat.py index 5a17a41..0ec68d9 100755 --- a/src/routers/deep_agent_chat.py +++ b/src/routers/deep_agent_chat.py @@ -44,10 +44,10 @@ async def chat_stream(request: DeepAgentChatRequest): * `config_params`: (可选) 对话配置参数 ```json { - "message": "示例", + "message": "你好", "config_params": { "type": "test", - "value": "test", + "region": "test", "style": "test" } } diff --git a/src/schemas/deep_agent_chat.py b/src/schemas/deep_agent_chat.py index 8525fe6..e6e5f92 100755 --- a/src/schemas/deep_agent_chat.py +++ b/src/schemas/deep_agent_chat.py @@ -16,7 +16,10 @@ class DeepAgentChatRequest(BaseModel): input_image_paths: Optional[list[str]] = Field(None, description="上传图片地址集合") # ✅ 新增 thread_id: Optional[str] = Field(None, description="会话线程ID,不传则开启新会话") checkpoint_id: Optional[str] = Field(None, description="回溯点的ID,用于从历史点开启新对话") - config_params: Optional[AgentConfig] = None + config_params: Optional[AgentConfig] = Field( + default=None, + description="Agent 配置参数(type/region/style 等)" + ) need_suggestion: float = 0 use_report: bool = False # ← 新增:是否使用深度报告