Expand description
Server framework for implementing A2A agents.
Modules§
- agent_
card - Agent card HTTP handlers (static, dynamic, and caching utilities).
- builder
- Builder for
RequestHandler. - call_
context - Call context for server-side interceptors.
- dispatch
- HTTP dispatch layer — JSON-RPC and REST routing.
- error
- Server-specific error types.
- executor
- Agent executor trait.
- handler
- Core request handler — protocol logic layer.
- interceptor
- Server-side interceptor chain.
- metrics
- Metrics hooks for observing handler activity.
- push
- Push notification configuration storage and delivery.
- request_
context - Request context passed to the
AgentExecutor. - store
- Task storage backend.
- streaming
- Streaming infrastructure for SSE responses and event queues.
Structs§
- Call
Context - Metadata about the current server-side method call.
- Cors
Config - CORS configuration for A2A dispatchers.
- Dynamic
Agent Card Handler - Serves a dynamically generated
AgentCardas a JSON HTTP response. - Event
Queue Manager - Manages event queues for active tasks.
- Http
Push Sender - HTTP-based
PushSenderusing hyper. - InMemory
Push Config Store - In-memory
PushConfigStorebacked by aHashMap. - InMemory
Queue Reader - In-memory
EventQueueReaderbacked by anmpscchannel receiver. - InMemory
Queue Writer - In-memory
EventQueueWriterbacked by anmpscchannel sender. - InMemory
Task Store - In-memory
TaskStorebacked by aHashMapunder aRwLock. - Json
RpcDispatcher - JSON-RPC 2.0 request dispatcher.
- Request
Context - Context for a single agent execution request.
- Request
Handler - The core protocol logic handler.
- Request
Handler Builder - Fluent builder for
RequestHandler. - Rest
Dispatcher - REST HTTP request dispatcher.
- Server
Interceptor Chain - An ordered chain of
ServerInterceptorinstances. - Static
Agent Card Handler - Serves a pre-serialized
AgentCardas a JSON HTTP response with caching. - Task
Store Config - Configuration for
InMemoryTaskStore.
Enums§
- Send
Message Result - Result of
RequestHandler::on_send_message. - Server
Error - Server framework error type.
Constants§
- CORS_
ALLOW_ ALL - CORS
Access-Control-Allow-Originheader value for public agent cards.
Traits§
- Agent
Card Producer - Trait for producing an
AgentCarddynamically. - Agent
Executor - Trait for implementing A2A agent execution logic.
- Event
Queue Reader - Trait for reading streaming events.
- Event
Queue Writer - Trait for writing streaming events.
- Push
Config Store - Trait for storing push notification configurations.
- Push
Sender - Trait for delivering push notifications to client webhooks.
- Server
Interceptor - A server-side interceptor for request processing.
- Task
Store - Trait for persisting and retrieving
Taskobjects.
Type Aliases§
- Server
Result - Convenience type alias:
Result<T, ServerError>.