Class A2ACardResolver_v0_3

java.lang.Object
org.a2aproject.sdk.compat03.client.http.A2ACardResolver_v0_3

public class A2ACardResolver_v0_3 extends Object
  • Constructor Details

    • A2ACardResolver_v0_3

      public A2ACardResolver_v0_3(String baseUrl) throws A2AClientError_v0_3
      Get the agent card for an A2A agent. The HTTP client will be auto-selected via A2AHttpClientFactory.
      Parameters:
      baseUrl - the base URL for the agent whose agent card we want to retrieve
      Throws:
      A2AClientError_v0_3 - if the URL for the agent is invalid
    • A2ACardResolver_v0_3

      public A2ACardResolver_v0_3(A2AHttpClient httpClient, String baseUrl) throws A2AClientError_v0_3
      Constructs an A2ACardResolver with a specific HTTP client and base URL.
      Parameters:
      httpClient - the http client to use
      baseUrl - the base URL for the agent whose agent card we want to retrieve
      Throws:
      A2AClientError_v0_3 - if the URL for the agent is invalid
    • A2ACardResolver_v0_3

      public A2ACardResolver_v0_3(A2AHttpClient httpClient, String baseUrl, String agentCardPath) throws A2AClientError_v0_3
      Parameters:
      httpClient - the http client to use
      baseUrl - the base URL for the agent whose agent card we want to retrieve
      agentCardPath - optional path to the agent card endpoint relative to the base agent URL, defaults to ".well-known/agent-card.json"
      Throws:
      A2AClientError_v0_3 - if the URL for the agent is invalid
    • A2ACardResolver_v0_3

      public A2ACardResolver_v0_3(A2AHttpClient httpClient, String baseUrl, @Nullable String agentCardPath, @Nullable Map<String,String> authHeaders) throws A2AClientError_v0_3
      Parameters:
      httpClient - the http client to use
      baseUrl - the base URL for the agent whose agent card we want to retrieve
      agentCardPath - optional path to the agent card endpoint relative to the base agent URL, defaults to ".well-known/agent-card.json"
      authHeaders - the HTTP authentication headers to use. May be null
      Throws:
      A2AClientError_v0_3 - if the URL for the agent is invalid
  • Method Details