Files
more_dots/schemas/agent_input.py
T
2026-03-02 17:41:04 +08:00

17 lines
447 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from typing import Any, Dict, Optional
from pydantic import BaseModel, ConfigDict, Field
class AgentInput(BaseModel):
"""统一工作流输入模型(新版本 DTO)"""
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)