Class A2AClientContext

java.lang.Object
dev.langchain4j.agentic.a2a.A2AClientContext

public final class A2AClientContext extends Object
The A2A client agent an A2AClientConfigurator is applied to.

New properties may be added in later versions; use builder() to create one, for example in tests.

  • Method Details

    • a2aServerUrl

      public String a2aServerUrl()
      Returns:
      the URL the agent was built with
    • tenant

      public String tenant()
      Returns:
      the tenant of the request: the tenant of the call for messages, otherwise the agent's configured tenant; null when there is none
    • agentName

      public String agentName()
      Returns:
      the name of the local agent
    • agentInterface

      public Class<?> agentInterface()
      Returns:
      the interface the agent was built from
    • agentCard

      public org.a2aproject.sdk.spec.AgentCard agentCard()
      Returns:
      the remote agent's Agent Card, or null while it is being fetched
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static A2AClientContext.Builder builder()