sequenceDiagram participant User as 用户 participant ClientAgent as 客户端智能体 participant AgentA as 智能体A (A系统) participant AuthA as A系统认证服务 participant AgentB as 智能体B (B系统) participant AuthB as B系统认证服务

User->>ClientAgent: 发起请求
ClientAgent->>AuthA: 获取A系统身份认证
AuthA-->>ClientAgent: 返回A系统令牌
ClientAgent->>AgentA: 请求服务 (带A系统令牌)

AgentA->>AgentA: 确定需要B系统资源
AgentA-->>ClientAgent: 返回INPUT-REQUIRED状态<br/>要求B系统身份认证

ClientAgent->>AuthB: 获取B系统身份认证
AuthB-->>ClientAgent: 返回B系统令牌
ClientAgent->>AgentA: 提供B系统令牌

AgentA->>AgentB: 请求服务 (传递B系统令牌)
AgentB->>AgentB: 验证B系统令牌
AgentB-->>AgentA: 返回结果
AgentA-->>ClientAgent: 返回最终结果
ClientAgent-->>User: 展示结果
0%