Class WellKnownAgentCardResolver

java.lang.Object
io.agentscope.core.a2a.agent.card.WellKnownAgentCardResolver
All Implemented Interfaces:
AgentCardResolver

public class WellKnownAgentCardResolver extends Object implements AgentCardResolver
Agent Card Producer from well known url.

Following Well-Known URI define. And use A2A.getAgentCard(String, String, Map) to get AgentCard.

  • baseUrl should be schema://domain:port[/rootPath]
  • relativeCardPath should be the subPath of well-known URI, default /.well-known/agent-card.json
  • authHeaders should be the authenticate headers to access agents server to get AgentCard

The whole well-known URI should be combined by baseUrl and relativeCardPath