Class GetExtendedAgentCardResponse
java.lang.Object
org.a2aproject.sdk.jsonrpc.common.wrappers.A2AResponse<AgentCard>
org.a2aproject.sdk.jsonrpc.common.wrappers.GetExtendedAgentCardResponse
- All Implemented Interfaces:
A2AMessage
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.
-
Field Summary
Fields inherited from class org.a2aproject.sdk.jsonrpc.common.wrappers.A2AResponse
error, id, jsonrpc, resultFields inherited from interface org.a2aproject.sdk.jsonrpc.common.wrappers.A2AMessage
JSONRPC_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionGetExtendedAgentCardResponse(Object id, A2AError error) Constructs error response.GetExtendedAgentCardResponse(Object id, AgentCard result) Constructs successful response.GetExtendedAgentCardResponse(String jsonrpc, Object id, AgentCard result, A2AError error) Constructs response with full parameters. -
Method Summary
Methods inherited from class org.a2aproject.sdk.jsonrpc.common.wrappers.A2AResponse
getError, getId, getJsonrpc, getResult
-
Constructor Details
-
GetExtendedAgentCardResponse
Constructs response with full parameters.- Parameters:
jsonrpc- the JSON-RPC versionid- the request IDresult- the agent card resulterror- the error if any
-
GetExtendedAgentCardResponse
Constructs error response.- Parameters:
id- the request IDerror- the error
-
GetExtendedAgentCardResponse
Constructs successful response.- Parameters:
id- the request IDresult- the agent card result
-