The A2A protocol uses types from theDocumentation Index
Fetch the complete documentation index at: https://docs.celesto.ai/llms.txt
Use this file to discover all available pages before exploring further.
a2a-sdk package for agent-to-agent communication. These types follow the A2A protocol v0.3.0 specification.
Core Types
JSONRPCRequest
Represents a JSON-RPC request in the A2A protocol.id- Unique identifier for the requestmethod- The RPC method to call (e.g., “message/send”, “message/stream”)params- Parameters for the methodjsonrpc- Protocol version (“2.0”)
JSONRPCResponse
Represents a JSON-RPC response.id- Request identifier this response corresponds toresult- The result data (if successful)error- Error information (if failed)jsonrpc- Protocol version (“2.0”)
JSONRPCError
Represents an error in a JSON-RPC response.code- Numeric error codemessage- Human-readable error messagedata- Additional error details (optional)
AgentCard
The agent card manifest that describes the agent’s capabilities.name- Agent namedescription- Agent descriptionurl- Agent base URLversion- Agent versionskills- List of agent skillscapabilities- Supported capabilitiesadditionalInterfaces- Additional communication interfacessecuritySchemes- Authentication schemessecurity- Security requirementsdefaultInputModes- Default input content typesdefaultOutputModes- Default output content typessupportsAuthenticatedExtendedCard- Whether extended card is supportedsignatures- Cryptographic signatures
AgentSkill
Describes a specific skill or capability the agent can perform.name- Skill identifierdescription- Skill descriptiontags- Categorization tags (optional)examples- Usage examples (optional)
AgentCapabilities
Describes the technical capabilities supported by the agent.streaming- Whether the agent supports streaming responsesstatefulness- Whether the agent maintains conversation stateasyncProcessing- Whether the agent supports asynchronous task processing
SendStreamingMessageRequest
A specialized request type for streaming messages.JSONRPCRequest with streaming-specific parameters.
Task
Represents an asynchronous task.id- Task identifierstatus- Current task statusstate- Task state informationcreated- Creation timestampupdated- Last update timestamp
TaskState
Enum representing task state values.pending- Task is queuedworking- Task is in progresscompleted- Task finished successfullyfailed- Task encountered an errorcancelled- Task was cancelled
TaskStatus
Represents the current status details of a task.state- Current task state (TaskState)progress- Progress percentage (0-100, optional)message- Status message (optional)
Usage Example
Import Path
/home/daytona/workspace/source/src/agentor/a2a.py:4