feat: 添加swarms团队编排功能并优化agent委派系统
- 引入AgentTeamOrchestrator支持多agent协同任务执行 - 增加第三方swarms库依赖并配置git协议替换以改善包管理 - 扩展DelegationManager支持团队任务调度和进度跟踪 - 实现中文bigram分词算法提升中文任务检索准确性 - 调整A2AClient和DelegationManager超时时间从30秒增至600秒 - 优化AgentRunResult状态判断逻辑增加有意义摘要检测 - 修改Dockerfile配置npm仓库镜像地址和git协议映射 - 更新CLI命令行接口支持网关端口配置传递 - 调整提供者超时配置机制增强请求稳定性 - 移除过时的support_group字段简化agent描述符结构 - 增强错误处理和进度事件报告机制改进用户体验
This commit is contained in:
@ -288,6 +288,7 @@ class ProviderConfig(Base):
|
||||
api_key: str = ""
|
||||
api_base: str | None = None
|
||||
extra_headers: dict[str, str] | None = None # Custom headers (e.g. APP-Code for AiHubMix)
|
||||
request_timeout_seconds: int = 600
|
||||
|
||||
|
||||
class ProvidersConfig(Base):
|
||||
@ -368,7 +369,7 @@ class A2AConfig(Base):
|
||||
# 总开关,预留给未来需要完全禁用远程委派的场景。
|
||||
enabled: bool = True
|
||||
# 单次远程任务的最长等待时间(秒)。
|
||||
timeout_seconds: int = 30
|
||||
timeout_seconds: int = 600
|
||||
# 非流式任务轮询间隔(秒)。
|
||||
poll_interval_seconds: int = 2
|
||||
# agent card 本地缓存 TTL,避免每次委派都重新拉远端元数据。
|
||||
|
||||
Reference in New Issue
Block a user