feat(agent tool): mcp and custom tool repair

This commit is contained in:
谢俊男
2026-01-08 14:00:28 +08:00
parent 7165d53982
commit 4ac010eda7
4 changed files with 189 additions and 110 deletions

View File

@@ -154,7 +154,7 @@ class MCPToolConfigSchema(BaseModel):
last_health_check: Optional[datetime] = None
health_status: str = "unknown"
error_message: Optional[str] = None
available_tools: List[str] = Field(default_factory=list)
available_tools: List[Dict[str, Dict[str, Any]]] = Field(default_factory=list, description="工具列表,格式: [{'tool_name': str, 'arguments': dict}]")
class Config:
from_attributes = True