init
This commit is contained in:
+4
-12
@@ -1,16 +1,8 @@
|
||||
from typing import Any, Dict, Optional
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field
|
||||
from schemas.chat_message_request import ChatMessageRequestDTO
|
||||
|
||||
|
||||
class AgentInput(BaseModel):
|
||||
"""统一工作流输入模型(新版本 DTO)"""
|
||||
class AgentInput(ChatMessageRequestDTO):
|
||||
"""兼容旧名称,实际与 ChatMessageRequestDTO 使用同一套前端请求模型。"""
|
||||
|
||||
|
||||
model_config = ConfigDict(extra="forbid")
|
||||
|
||||
query: str
|
||||
conversation_id: Optional[str] = None
|
||||
workflow_type: str = "conversation"
|
||||
response_mode: str = "blocking"
|
||||
user: Optional[str] = None
|
||||
inputs: Dict[str, Any] = Field(default_factory=dict)
|
||||
|
||||
Reference in New Issue
Block a user