Class GetExtendedAgentCardResponse

java.lang.Object
org.a2aproject.sdk.jsonrpc.common.wrappers.A2AResponse<AgentCard>
org.a2aproject.sdk.jsonrpc.common.wrappers.GetExtendedAgentCardResponse
All Implemented Interfaces:
A2AMessage

public final class GetExtendedAgentCardResponse extends A2AResponse<AgentCard>
JSON-RPC response containing an agent's extended card with authenticated details.

This response returns an AgentCard with additional information only available to authenticated clients. The extended card may include premium features, detailed security configurations, or other authenticated-only capabilities.

If the agent doesn't support authenticated extended cards or authentication fails, the error field will contain a A2AError such as ExtendedAgentCardNotConfiguredError.

See Also:
  • Constructor Details

    • GetExtendedAgentCardResponse

      public GetExtendedAgentCardResponse(String jsonrpc, Object id, AgentCard result, A2AError error)
      Constructs response with full parameters.
      Parameters:
      jsonrpc - the JSON-RPC version
      id - the request ID
      result - the agent card result
      error - the error if any
    • GetExtendedAgentCardResponse

      public GetExtendedAgentCardResponse(Object id, A2AError error)
      Constructs error response.
      Parameters:
      id - the request ID
      error - the error
    • GetExtendedAgentCardResponse

      public GetExtendedAgentCardResponse(Object id, AgentCard result)
      Constructs successful response.
      Parameters:
      id - the request ID
      result - the agent card result