Skip to main content

Module server

Module server 

Source
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§

CallContext
Metadata about the current server-side method call.
CorsConfig
CORS configuration for A2A dispatchers.
DynamicAgentCardHandler
Serves a dynamically generated AgentCard as a JSON HTTP response.
EventQueueManager
Manages event queues for active tasks.
HttpPushSender
HTTP-based PushSender using hyper.
InMemoryPushConfigStore
In-memory PushConfigStore backed by a HashMap.
InMemoryQueueReader
In-memory EventQueueReader backed by an mpsc channel receiver.
InMemoryQueueWriter
In-memory EventQueueWriter backed by an mpsc channel sender.
InMemoryTaskStore
In-memory TaskStore backed by a HashMap under a RwLock.
JsonRpcDispatcher
JSON-RPC 2.0 request dispatcher.
RequestContext
Context for a single agent execution request.
RequestHandler
The core protocol logic handler.
RequestHandlerBuilder
Fluent builder for RequestHandler.
RestDispatcher
REST HTTP request dispatcher.
ServerInterceptorChain
An ordered chain of ServerInterceptor instances.
StaticAgentCardHandler
Serves a pre-serialized AgentCard as a JSON HTTP response with caching.
TaskStoreConfig
Configuration for InMemoryTaskStore.

Enums§

SendMessageResult
Result of RequestHandler::on_send_message.
ServerError
Server framework error type.

Constants§

CORS_ALLOW_ALL
CORS Access-Control-Allow-Origin header value for public agent cards.

Traits§

AgentCardProducer
Trait for producing an AgentCard dynamically.
AgentExecutor
Trait for implementing A2A agent execution logic.
EventQueueReader
Trait for reading streaming events.
EventQueueWriter
Trait for writing streaming events.
PushConfigStore
Trait for storing push notification configurations.
PushSender
Trait for delivering push notifications to client webhooks.
ServerInterceptor
A server-side interceptor for request processing.
TaskStore
Trait for persisting and retrieving Task objects.

Type Aliases§

ServerResult
Convenience type alias: Result<T, ServerError>.