AgentCardController
@RestController @RequestMapping("/") public class AgentCardController
源码Source
io/agentscope/spring/boot/a2a/controller/AgentCardController.java:26–40智能体卡片控制器,支持智能体之间的发现、委派与协作。位于 io.agentscope.spring.boot.a2a.controller 包。核心成员包括 getAgentCard、AgentCardController。
A class in io.agentscope.spring.boot.a2a.controller that supports discovery, delegation and collaboration between agents. Declared in io.agentscope.spring.boot.a2a.controller.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public AgentCardController(AgentScopeA2aServer agentScopeA2aServer) | 初始化 `AgentCardController` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public AgentCard getAgentCard() | 获取智能体卡片。 Returns the agent card. |
构造器详情Constructor Detail
AgentCardController
public AgentCardController(AgentScopeA2aServer agentScopeA2aServer)
初始化 AgentCardController 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentScopeA2aServer | AgentScopeA2aServer | 智能体范围 A 2 a 服务端(类型 `AgentScopeA2aServer`)。The agent scope a 2 a server. |
源码Source
io/agentscope/spring/boot/a2a/controller/AgentCardController.java:32–34方法详情Method Detail
getAgentCard
public AgentCard getAgentCard()
获取智能体卡片。
Returns the agent card.
AgentCard返回AgentCard。Returns agent card.
源码Source
io/agentscope/spring/boot/a2a/controller/AgentCardController.java:36–39