类 HttpCardResolver
java.lang.Object
io.github.a2ap.core.client.impl.HttpCardResolver
- 所有已实现的接口:
CardResolver
HTTP-based implementation of
CardResolver for discovering agent capabilities.
This implementation follows the A2A protocol standard for agent discovery by fetching
AgentCard information from a well-known HTTP endpoint. It assumes the agent identifier
is a base URL and attempts to retrieve the agent card from the standard location.
Discovery process:
1. Treats the agent identifier as a base URL
2. Appends the well-known path "/.well-known/agent.json"
3. Performs an HTTP GET request to retrieve the agent card
4. Deserializes the JSON response into an AgentCard object
The implementation uses Reactor Netty's HttpClient for non-blocking HTTP operations
and includes proper error handling and logging for troubleshooting discovery issues.
This resolver is suitable for agents that expose their capabilities through standard
HTTP endpoints following the A2A protocol conventions.-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
HttpCardResolver
-
-
方法详细资料
-
resolveCard
从接口复制的说明:CardResolverResolves the AgentCard for the configured agent. This method retrieves and returns the AgentCard containing the agent's capabilities, endpoints, and metadata. The resolution process depends on the specific implementation and the agent identification mechanism used.- 指定者:
resolveCard在接口中CardResolver- 返回:
- AgentCard containing agent information, or null if resolution fails
-