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§
- Agent
Capabilities - Agent
Card - Agent Card - self-describing manifest (full proto parity)
- Agent
Card Signature - JWS signature attached to an agent card
- Agent
Extension - An agent-level extension declaration
- Agent
Interface - An additional transport interface for an agent
- Agent
Provider - Agent
Skill - Artifact
- An artifact produced by a task
- Authentication
Info - Authentication info for connecting to an agent (used by clients)
- File
Content - File content (bytes or URI)
- Json
RpcError - Json
RpcRequest - JSON-RPC 2.0 Request
- Json
RpcResponse - JSON-RPC 2.0 Response
- Message
- An A2A Message
- Message
Send Configuration - Message
Send Params - Message send parameters
- OAuth
Flow Authorization Code - OAuth
Flow Client Credentials - OAuth
Flow Device Code - OAuth
Flow Implicit - OAuth
Flows - OAuth 2.0 flows (matches proto
OAuthFlows) - Push
Notification Config - Task
- An A2A Task
- Task
Artifact Update Event - A task artifact update pushed via SSE / streaming
- Task
Push Notification Config - Request to set push notification config for a task
- Task
Query Params - Task query parameters
- Task
Status - Task status information
- Task
Status Update Event - A task status update pushed via SSE / streaming
Enums§
- Message
Role - Part
- A part of a message
- Security
Scheme - Security scheme definition (union), matches proto
SecurityScheme - Send
Message Response - The response union for
message/send— either a full Task or a Message - Stream
Event - A single frame on a streaming response (SSE
data:payload). - Task
State - 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§
- Security
Requirement - A security requirement entry: name → list of required scopes