Expand description
Core data structures for A2A RC 1.0 JSON-RPC over HTTP. Provides shared types for server/client plus minimal helpers for JSON-RPC envelopes and error codes. Aligned with the authoritative proto definition (specification/a2a.proto).
Modules§
- errors
- JSON-RPC and A2A-specific error codes
Structs§
- Agent
Capabilities - Agent
Card - Complete Agent Card per A2A RC 1.0 proto spec
- Agent
Card Signature - Cryptographic signature for Agent Card verification (JWS)
- Agent
Extension - Agent
Interface - Agent interface / transport endpoint
- Agent
Provider - Provider/organization information
- Agent
Skill - Agent skill/capability definition
- ApiKey
Security Scheme - Artifact
- Artifact output from task processing per proto spec
- Authentication
Info - Authentication info for push notification delivery per proto spec
- Authorization
CodeO Auth Flow - Cancel
Task Request - Parameters for tasks/cancel operation
- Client
CredentialsO Auth Flow - Create
Task Push Notification Config Request - Parameters for tasks/pushNotificationConfig/create
- Delete
Task Push Notification Config Request - Parameters for tasks/pushNotificationConfig/delete
- Device
CodeO Auth Flow - GetExtended
Agent Card Request - Parameters for agentCard/getExtended
- GetTask
Push Notification Config Request - Parameters for tasks/pushNotificationConfig/get
- GetTask
Request - Parameters for tasks/get operation
- Http
Auth Security Scheme - ImplicitO
Auth Flow - Json
RpcError - Json
RpcRequest - Json
RpcResponse - List
Task Push Notification Config Request - Parameters for tasks/pushNotificationConfig/list
- List
Task Push Notification Config Response - Response for tasks/pushNotificationConfig/list
- List
Tasks Request - Parameters for tasks/list operation
- Message
- Message structure per A2A RC 1.0 proto spec
- Mutual
TlsSecurity Scheme - OAuth2
Security Scheme - Open
IdConnect Security Scheme - Part
- Part content — flat struct matching proto3 oneof serialization.
- PasswordO
Auth Flow - Push
Notification Config - Push notification configuration per proto spec
- Security
Requirement - Security requirement for operations
- Send
Message Configuration - Configuration for message send requests
- Send
Message Request - Parameters for message/send operation
- String
List - Helper struct for lists of strings in security requirements
- Subscribe
ToTask Request - Parameters for tasks/subscribe operation
- Task
- Task resource per A2A RC 1.0 proto spec
- Task
Artifact Update Event - Task artifact update event
- Task
List Response - Response for tasks/list operation
- Task
Push Notification Config - Wrapper for push notification config with task context
- Task
Status - Task status information
- Task
Status Update Event - Task status update event
Enums§
- OAuth
Flows - OAuth2 flows — proto oneof
- Role
- Message role per proto spec
- Security
Scheme - Authentication scheme definition (externally tagged, proto oneof)
- Send
Message Response - Response from SendMessage — can be a Task or direct Message per proto
- Stream
Response - Streaming response per proto spec — uses externally tagged oneof
- Task
State - Task lifecycle state per proto spec
Constants§
Functions§
- completed_
task_ with_ text - Create a completed task with text response
- error
- new_
message - Create a new message with text content
- now_
iso8601 - Generate ISO 8601 timestamp
- success
- validate_
task_ id - Validate task ID format (UUID)