Skip to main content

Module types

Module types 

Source
Expand description

A2A Protocol Types

Types aligned with the A2A gRPC specification (a2a.proto) and JSON-RPC schema. This module provides full protocol parity with the proto definition including streaming events, security schemes, push notification config CRUD, and agent card extensions.

Structs§

AgentCapabilities
AgentCard
Agent Card - self-describing manifest (full proto parity)
AgentCardSignature
JWS signature attached to an agent card
AgentExtension
An agent-level extension declaration
AgentInterface
An additional transport interface for an agent
AgentProvider
AgentSkill
Artifact
An artifact produced by a task
AuthenticationInfo
Authentication info for connecting to an agent (used by clients)
FileContent
File content (bytes or URI)
JsonRpcError
JsonRpcRequest
JSON-RPC 2.0 Request
JsonRpcResponse
JSON-RPC 2.0 Response
Message
An A2A Message
MessageSendConfiguration
MessageSendParams
Message send parameters
OAuthFlowAuthorizationCode
OAuthFlowClientCredentials
OAuthFlowDeviceCode
OAuthFlowImplicit
OAuthFlows
OAuth 2.0 flows (matches proto OAuthFlows)
PushNotificationConfig
Task
An A2A Task
TaskArtifactUpdateEvent
A task artifact update pushed via SSE / streaming
TaskPushNotificationConfig
Request to set push notification config for a task
TaskQueryParams
Task query parameters
TaskStatus
Task status information
TaskStatusUpdateEvent
A task status update pushed via SSE / streaming

Enums§

MessageRole
Part
A part of a message
SecurityScheme
Security scheme definition (union), matches proto SecurityScheme
SendMessageResponse
The response union for message/send — either a full Task or a Message
StreamEvent
A single frame on a streaming response (SSE data: payload).
TaskState
A2A Task States

Constants§

CONTENT_TYPE_NOT_SUPPORTED
INTERNAL_ERROR
INVALID_PARAMS
INVALID_REQUEST
METHOD_NOT_FOUND
PARSE_ERROR
PUSH_NOT_SUPPORTED
TASK_NOT_CANCELABLE
TASK_NOT_FOUND
UNSUPPORTED_OPERATION

Type Aliases§

SecurityRequirement
A security requirement entry: name → list of required scopes