AS AgentScopeAPI 手册 / API Reference

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
agentScopeA2aServerAgentScopeA2aServer智能体范围 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.

返回Returns AgentCard
返回AgentCard。Returns agent card.
源码Source io/agentscope/spring/boot/a2a/controller/AgentCardController.java:36–39
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.