auto-sync: 2026-05-30 10:34:59
This commit is contained in:
@@ -32,6 +32,7 @@ class AgentProfile:
|
||||
"""Agent 能力画像"""
|
||||
agent_id: str
|
||||
capabilities: List[str] = field(default_factory=list)
|
||||
capabilities_zh: List[str] = field(default_factory=list)
|
||||
can_review: bool = False
|
||||
max_concurrent: int = 1
|
||||
is_fallback: bool = False
|
||||
|
||||
@@ -151,6 +151,7 @@ async def lifespan(app: FastAPI):
|
||||
agent_profiles[aid] = AgentProfile(
|
||||
agent_id=aid,
|
||||
capabilities=prof.get("capabilities", []),
|
||||
capabilities_zh=prof.get("capabilities_zh", []),
|
||||
can_review=prof.get("can_review", False),
|
||||
max_concurrent=prof.get("max_concurrent", 1),
|
||||
is_fallback=prof.get("is_fallback", False),
|
||||
|
||||
Reference in New Issue
Block a user