Module: A2A

Defined in:
lib/a2a.rb,
lib/a2a/types.rb,
lib/a2a/version.rb,
lib/a2a/types/part.rb,
lib/a2a/types/task.rb,
lib/a2a/types/error.rb,
lib/a2a/types/message.rb,
lib/a2a/types/request.rb,
lib/a2a/types/artifact.rb,
lib/a2a/types/data_part.rb,
lib/a2a/types/file_base.rb,
lib/a2a/types/file_part.rb,
lib/a2a/types/part_base.rb,
lib/a2a/types/text_part.rb,
lib/a2a/types/agent_card.rb,
lib/a2a/types/task_state.rb,
lib/a2a/types/agent_skill.rb,
lib/a2a/types/error_codes.rb,
lib/a2a/types/oauth_flows.rb,
lib/a2a/types/task_status.rb,
lib/a2a/types/file_with_uri.rb,
lib/a2a/types/agent_provider.rb,
lib/a2a/types/task_id_params.rb,
lib/a2a/types/agent_extension.rb,
lib/a2a/types/agent_interface.rb,
lib/a2a/types/file_with_bytes.rb,
lib/a2a/types/protocol_struct.rb,
lib/a2a/types/security_scheme.rb,
lib/a2a/types/get_task_request.rb,
lib/a2a/types/get_task_response.rb,
lib/a2a/types/task_query_params.rb,
lib/a2a/types/agent_capabilities.rb,
lib/a2a/types/transport_protocol.rb,
lib/a2a/types/cancel_task_request.rb,
lib/a2a/types/implicit_oauth_flow.rb,
lib/a2a/types/message_send_params.rb,
lib/a2a/types/password_oauth_flow.rb,
lib/a2a/types/agent_card_signature.rb,
lib/a2a/types/cancel_task_response.rb,
lib/a2a/types/security_scheme_base.rb,
lib/a2a/types/send_message_request.rb,
lib/a2a/types/task_not_found_error.rb,
lib/a2a/types/send_message_response.rb,
lib/a2a/types/oauth2_security_scheme.rb,
lib/a2a/types/api_key_security_scheme.rb,
lib/a2a/extensions/case_transformation.rb,
lib/a2a/types/push_notification_config.rb,
lib/a2a/types/task_status_update_event.rb,
lib/a2a/extensions/json_deserialization.rb,
lib/a2a/types/http_auth_security_scheme.rb,
lib/a2a/types/task_not_cancelable_error.rb,
lib/a2a/extensions/additional_properties.rb,
lib/a2a/types/message_send_configuration.rb,
lib/a2a/types/mutual_tls_security_scheme.rb,
lib/a2a/types/task_artifact_update_event.rb,
lib/a2a/types/task_resubscription_request.rb,
lib/a2a/types/unsupported_operation_error.rb,
lib/a2a/types/invalid_agent_response_error.rb,
lib/a2a/types/authorization_code_oauth_flow.rb,
lib/a2a/types/client_credentials_oauth_flow.rb,
lib/a2a/types/task_push_notification_config.rb,
lib/a2a/types/openid_connect_security_scheme.rb,
lib/a2a/types/send_streaming_message_request.rb,
lib/a2a/types/send_streaming_message_response.rb,
lib/a2a/types/content_type_not_supported_error.rb,
lib/a2a/types/get_task_push_notification_request.rb,
lib/a2a/types/set_task_push_notification_request.rb,
lib/a2a/types/get_task_push_notification_response.rb,
lib/a2a/types/set_task_push_notification_response.rb,
lib/a2a/types/push_notification_authentication_info.rb,
lib/a2a/types/push_notification_not_supported_error.rb,
lib/a2a/types/get_authenticated_extended_card_request.rb,
lib/a2a/types/get_authenticated_extended_card_response.rb,
lib/a2a/types/get_task_push_notification_config_params.rb,
lib/a2a/types/get_task_push_notification_config_request.rb,
lib/a2a/types/list_task_push_notification_config_params.rb,
lib/a2a/types/set_task_push_notification_config_request.rb,
lib/a2a/types/list_task_push_notification_config_request.rb,
lib/a2a/types/delete_task_push_notification_config_params.rb,
lib/a2a/types/list_task_push_notification_config_response.rb,
lib/a2a/types/delete_task_push_notification_config_request.rb,
lib/a2a/types/delete_task_push_notification_config_response.rb,
lib/a2a/types/authenticated_extended_card_not_configured_error.rb

Overview

Encapsulates all the gem’s logic

Defined Under Namespace

Modules: ErrorCodes, Extensions Classes: APIKeySecurityScheme, AgentCapabilities, AgentCard, AgentCardSignature, AgentExtension, AgentInterface, AgentProvider, AgentSkill, Artifact, AuthenticatedExtendedCardNotConfiguredError, AuthorizationCodeOAuthFlow, CancelTaskRequest, CancelTaskResponse, ClientCredentialsOAuthFlow, ContentTypeNotSupportedError, DataPart, DeleteTaskPushNotificationConfigParams, DeleteTaskPushNotificationConfigRequest, DeleteTaskPushNotificationConfigResponse, FileBase, FilePart, FileWithBytes, FileWithUri, GetAuthenticatedExtendedCardRequest, GetAuthenticatedExtendedCardResponse, GetTaskPushNotificationConfigParams, GetTaskPushNotificationConfigRequest, GetTaskPushNotificationRequest, GetTaskPushNotificationResponse, GetTaskRequest, GetTaskResponse, HTTPAuthSecurityScheme, ImplicitOAuthFlow, InvalidAgentResponseError, ListTaskPushNotificationConfigParams, ListTaskPushNotificationConfigRequest, ListTaskPushNotificationConfigResponse, Message, MessageSendConfiguration, MessageSendParams, MutualTLSSecurityScheme, OAuth2SecurityScheme, OAuthFlows, OpenIdConnectSecurityScheme, PartBase, PasswordOAuthFlow, PushNotificationAuthenticationInfo, PushNotificationConfig, PushNotificationNotSupportedError, SecuritySchemeBase, SendMessageRequest, SendMessageResponse, SendStreamingMessageRequest, SendStreamingMessageResponse, SetTaskPushNotificationConfigRequest, SetTaskPushNotificationRequest, SetTaskPushNotificationResponse, Task, TaskArtifactUpdateEvent, TaskIdParams, TaskNotCancelableError, TaskNotFoundError, TaskPushNotificationConfig, TaskQueryParams, TaskResubscriptionRequest, TaskStatus, TaskStatusUpdateEvent, TextPart, UnsupportedOperationError

Constant Summary collapse

VERSION =
'0.2.0'
Part =

A discriminated union representing a part of a message or artifact, which can be text, a file, or structured data.

TextPart | FilePart | DataPart
Error =

A discriminated union of all standard JSON-RPC and A2A-specific error types.

Types.Constructor(
  Types.Instance(JSONRPC::ParseError) |
  Types.Instance(JSONRPC::InvalidRequestError) |
  Types.Instance(JSONRPC::MethodNotFoundError) |
  Types.Instance(JSONRPC::InvalidParamsError) |
  Types.Instance(JSONRPC::InternalError) |
  Types.Instance(TaskNotFoundError) |
  Types.Instance(TaskNotCancelableError) |
  Types.Instance(PushNotificationNotSupportedError) |
  Types.Instance(UnsupportedOperationError) |
  Types.Instance(ContentTypeNotSupportedError) |
  Types.Instance(InvalidAgentResponseError) |
  Types.Instance(AuthenticatedExtendedCardNotConfiguredError)
) { |value| value }
Request =

A discriminated union representing all possible JSON-RPC 2.0 requests supported by the A2A specification.

SendMessageRequest |
SendStreamingMessageRequest |
GetTaskRequest |
CancelTaskRequest |
SetTaskPushNotificationConfigRequest |
GetTaskPushNotificationConfigRequest |
TaskResubscriptionRequest |
ListTaskPushNotificationConfigRequest |
DeleteTaskPushNotificationConfigRequest |
GetAuthenticatedExtendedCardRequest
TaskState =

The current state of the task

Types::String.enum('submitted', 'working', 'input-required', 'completed', 'canceled', 'failed',
'rejected', 'auth-required', 'unknown')
SecurityScheme =

A discriminated union representing a security scheme that can be used to secure an agent’s endpoints. This is a discriminated union type based on the OpenAPI 3.0 Security Scheme Object.

APIKeySecurityScheme |
HTTPAuthSecurityScheme |
OAuth2SecurityScheme |
OpenIdConnectSecurityScheme |
MutualTLSSecurityScheme
TransportProtocol =

Supported A2A transport protocols.

Types::String.enum('JSONRPC', 'GRPC', 'HTTP+JSON')