WellKnownAgentCardResolver
public class WellKnownAgentCardResolver implements AgentCardResolver
io/agentscope/core/a2a/agent/card/WellKnownAgentCardResolver.java:37–121Well Known 智能体卡片解析器,支持智能体之间的发现、委派与协作。位于 io.agentscope.core.a2a.agent.card 包,实现 AgentCardResolver。核心成员包括 getAgentCard、builder。
Agent Card Producer from well known url.
Following Well-Known URI define.
And use A2A#getAgentCard(String, String, Map) to get AgentCard.
-
#baseUrlshould beschema://domain:port[/rootPath] -
#relativeCardPathshould be the subPath of well-known URI, default/.well-known/agent-card.json -
#authHeadersshould be the authenticate headers to access agents server to get AgentCard
The whole well-known URI should be combined by #baseUrl and #relativeCardPath
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | 构建器,用于构建并配置目标实例。 A class in io.agentscope.core.a2a.agent.card that supports discovery, delegation and collaboration between agents. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public AgentCard getAgentCard(String agentName) | 获取智能体卡片。 Returns the agent card. |
public static Builder builder()static | 创建新的`Builder`实例用于`WellKnownAgentCardResolver`。 Create a new `Builder` instance for `WellKnownAgentCardResolver`. |
方法详情Method Detail
getAgentCard
public AgentCard getAgentCard(String agentName)
获取智能体卡片。
Returns the agent card.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentName | String | 智能体名称(类型 `String`)。The agent name. |
AgentCardio/agentscope/core/a2a/agent/card/WellKnownAgentCardResolver.java:52–55builder
public static Builder builder()
创建新的Builder实例用于WellKnownAgentCardResolver。
Create a new Builder instance for WellKnownAgentCardResolver.
Builderio/agentscope/core/a2a/agent/card/WellKnownAgentCardResolver.java:62–64嵌套类详情Nested Class Detail
Builder
public static class Builder构建器,用于构建并配置目标实例。位于 io.agentscope.core.a2a.agent.card 包。核心成员包括 baseUrl、relativeCardPath、authHeaders、build。
A class in io.agentscope.core.a2a.agent.card that supports discovery, delegation and collaboration between agents. Declared in io.agentscope.core.a2a.agent.card.