Skip to main content

Module a2a

Module a2a 

Source
Expand description

Agent2Agent (A2A) Protocol support for VT Code.

Re-exported from vtcode-a2a for backward compatibility.

Modules§

agent_card
Agent Card for A2A Protocol
cli
A2A Protocol CLI commands
client
A2A client for interacting with remote A2A agents. Provides helper methods for discovery, task operations, and streaming.
errors
A2A Protocol error types and error codes
rpc
JSON-RPC 2.0 structures for A2A Protocol
server
A2A HTTP Server using axum
task_manager
A2A Task Manager
types
A2A Protocol core data types
webhook
Webhook delivery for A2A push notifications

Structs§

A2aClient
HTTP client for interacting with A2A agents
AgentCapabilities
Agent capabilities declaration
AgentCard
Agent Card - metadata describing an A2A agent
AgentProvider
Agent provider/organization details
AgentSkill
A specific capability/skill of an agent
Artifact
A tangible output generated by a task
JsonRpcError
JSON-RPC 2.0 Error
JsonRpcRequest
JSON-RPC 2.0 Request
JsonRpcResponse
JSON-RPC 2.0 Response
Message
A single unit of communication
SendStreamingMessageResponse
Base wrapper for streaming message response
Task
Represents a stateful unit of work
TaskManager
A2A Task Manager - handles task creation, updates, and queries
TaskPushNotificationConfig
Configuration for push notification delivery
TaskStatus
Task status with state, optional message, and timestamp
WebhookNotifier
Webhook notifier for delivering A2A events

Enums§

A2aError
A2A protocol error
A2aErrorCode
A2A error code enum for type-safe error handling
FileContent
File content representation
MessageRole
Role of the message sender
Part
Content part types: text, file, or structured data
StreamingEvent
Streaming event types (discriminated by ‘type’ field)
TaskState
Task lifecycle states as defined in the A2A specification
WebhookError
Webhook delivery errors

Functions§

shutdown_signal_logged
Wait for a process shutdown signal and log listener errors.

Type Aliases§

A2aResult
A2A Result type alias