refactor: 重构 AgentScope 运行时模块并优化前端附件展示

This commit is contained in:
qzl
2026-03-13 15:42:01 +08:00
parent a10a2db27a
commit 4c10929498
28 changed files with 1494 additions and 2163 deletions
+14 -4
View File
@@ -4,11 +4,21 @@ from typing import ClassVar
from pydantic import BaseModel, ConfigDict
from ..agent import AgentType, ToolAgentOutput, WorkerAgentOutput
class UserMessageAttachments(BaseModel):
model_config: ClassVar[ConfigDict] = ConfigDict(extra="allow")
bucket: str
path: str
mime_type: str
class AgentChatMessageMetadata(BaseModel):
model_config: ClassVar[ConfigDict] = ConfigDict(extra="allow")
run_id: str | None = None
stage: str | None = None
latency_ms: int | None = None
message_id: str | None = None
agent_type: AgentType | None = None
user_message_attachments: UserMessageAttachments | None = None
tool_agent_output: ToolAgentOutput | None = None
worker_agent_output: WorkerAgentOutput | None = None