Class WellKnownAgentCardResolver
java.lang.Object
io.agentscope.core.a2a.agent.card.WellKnownAgentCardResolver
- All Implemented Interfaces:
AgentCardResolver
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.jsonauthHeadersshould 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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a newWellKnownAgentCardResolver.Builderinstance forWellKnownAgentCardResolver.io.a2a.spec.AgentCardgetAgentCard(String agentName) Produce AgentCard for target agent name.
-
Method Details
-
getAgentCard
Description copied from interface:AgentCardResolverProduce AgentCard for target agent name.- Specified by:
getAgentCardin interfaceAgentCardResolver- Parameters:
agentName- name of agent- Returns:
AgentCard
-
builder
Create a newWellKnownAgentCardResolver.Builderinstance forWellKnownAgentCardResolver.- Returns:
- new builder instance
-