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 # ← 新增:是否使用深度报告