Skip to main content

Module server

Module server 

Source
Expand description

A2A HTTP Server using axum

Provides HTTP endpoints for the A2A Protocol, enabling VT Code to operate as an A2A agent. The server exposes:

  • Agent discovery via /.well-known/agent-card.json
  • RPC endpoints at /a2a for message sending and task management
  • Streaming endpoint at /a2a/stream for real-time updates via Server-Sent Events

Structs§

A2aErrorResponse
A2A error response for Axum
A2aServerState
A2A Server State containing shared resources

Functions§

create_router
Create the A2A HTTP router
run
Run the A2A server