Package org.a2aproject.sdk.spec
@NullMarked
package org.a2aproject.sdk.spec
JSON processing exceptions for the A2A Java SDK.
This package provides custom exceptions that replace Jackson's JSON processing exceptions, allowing the SDK to be independent of any specific JSON library implementation.
-
ClassDescriptionBase exception for A2A client-specific error conditions.Exception indicating a client-side failure in A2A Protocol operations.Client exception indicating an HTTP transport error with a specific status code.Client exception indicating invalid arguments provided to a client operation.Client exception indicating an invalid state for the requested operation.Client exception indicating a JSON serialization or deserialization error.Marker interface for A2A Protocol error events.All the error codes for A2A errors.Base exception for A2A Protocol-related failures.Constants defining the A2A protocol method names.Represents a protocol-level error in the A2A Protocol.Exception indicating a server-side failure in A2A Protocol operations.Defines optional capabilities supported by an agent in the A2A Protocol.Builder for constructing immutable
AgentCapabilitiesinstances.The AgentCard is a self-describing manifest for an agent in the A2A Protocol.Builder for constructing immutableAgentCardinstances.Represents a digital signature for anAgentCardusing JSON Web Signature (JWS) format.Builder for constructing immutableAgentCardSignatureinstances.Represents a protocol extension supported by an agent.Builder for constructing immutableAgentExtensioninstances.Declares a combination of a target URL and protocol binding for accessing an agent.Represents information about the organization or entity providing an agent.Represents a distinct skill or capability that an agent can perform in the A2A Protocol.Builder for constructing immutableAgentSkillinstances.API key security scheme for agent authentication.Builder for constructing immutableAPIKeySecuritySchemeinstances.Represents the location of the API key.Represents a file, data structure, or other resource generated by an agent during task execution.Builder for constructing immutableArtifactinstances.Authentication information for agent authentication and push notification endpoints.Configuration for the OAuth 2.0 Authorization Code flow.Parameters for cancelling a task.Builder for constructing instances.Configuration for the OAuth 2.0 Client Credentials flow.A2A Protocol error indicating incompatibility between requested content types and agent capabilities.Parameters for deleting a push notification configuration from a task.Builder for constructingDeleteTaskPushNotificationConfigParamsinstances.Configuration details for the OAuth 2.0 Device Code flow (RFC 8628).Marker interface for all event types in the A2A Protocol.Interface for events that can be returned from non-streaming A2A Protocol operations.A2A Protocol error indicating that the agent does not have an authenticated extended card configured.A2A Protocol error indicating that a client requested use of an extension marked as required but did not declare support for it.Sealed interface representing file content in the A2A Protocol.Represents file content embedded directly as base64-encoded bytes.Represents file content referenced by a URI location.Parameters to get the extended agent card.Parameters for retrieving push notification configuration for a specific task.Builder for constructing GetTaskPushNotificationConfigParams instances.HTTP authentication security scheme for agent authentication.Builder for constructingHTTPAuthSecuritySchemeinstances.JSON-RPC error indicating an internal error occurred on the server.A2A Protocol error indicating that an agent returned a response not conforming to protocol specifications.JSON-RPC error indicating that method parameters are invalid or missing required fields.JSON-RPC error indicating that the request payload is not a valid JSON-RPC Request object.JSON-RPC error indicating that the server received invalid JSON that could not be parsed.A legacy (v0.3) representation of an agent interface, using the v0.3 field names (transportandurl) for backward compatibility with older clients.Parameters for listing all push notification configurations for a task.Builder for constructing instances.Result of listing push notification configurations for a task with pagination support.Parameters for listing tasks with optional filtering and pagination.Builder for constructing instances.Represents a single message in the conversation between a user and an agent in the A2A Protocol.Builder for constructingMessageinstances with fluent API.Defines the role of the message sender in the conversation.Configuration options formessage/sendandmessage/streamrequests.Builder for constructingMessageSendConfigurationinstances.Parameters for sending a message to an agent in the A2A Protocol.Builder for constructingMessageSendParamsinstances.JSON-RPC error indicating that the requested method does not exist or is not available.Mutual TLS (mTLS) security scheme for agent authentication.OAuth 2.0 security scheme for agent authentication.Builder for constructing immutableOAuth2SecuritySchemeinstances.Configuration for supported OAuth 2.0 authorization flows.Builder for constructingOAuthFlowsinstances.OpenID Connect security scheme for agent authentication.Builder for constructing immutableOpenIdConnectSecuritySchemeinstances.Part<T>A2A Protocol error indicating that the agent does not support push notifications.Represents a security requirement in the A2A Protocol.Builder for constructing immutableSecurityRequirementinstances.Base interface for security schemes used to authenticate access to agent endpoints.Sealed interface for events that can be emitted during streaming A2A Protocol operations.Represents a single, stateful operation or conversation between a client and an agent in the A2A Protocol.Builder for constructing immutableTaskinstances.Event notifying that a task artifact has been created, modified, or appended to.Builder for constructingTaskArtifactUpdateEventinstances.Parameters containing a task identifier for task-related operations.Builder for constructing instances.A2A Protocol error indicating that a task cannot be canceled in its current state.A2A Protocol error indicating that the requested task ID does not exist.Push notification configuration associated with a specific task.Builder for constructingTaskPushNotificationConfiginstances.Defines parameters for querying a task, with an option to limit history length.Builder for constructing instances.Defines the lifecycle states of aTaskin the A2A Protocol.Represents the status of a task at a specific point in time in the A2A Protocol.An event sent by the agent to notify the client of a change in a task's status.Builder for constructingTaskStatusUpdateEventinstances.Enumeration of supported transport protocols for A2A Protocol communication.A2A Protocol error indicating that the requested operation is not supported by the agent.Sealed interface for incremental update events during task execution.A2A Protocol error indicating that the A2A protocol version specified in the request is not supported by the agent.