Expand description
Core request handler — protocol logic layer.
RequestHandler wires together the executor, stores, push sender,
interceptors, and event queue manager to implement all A2A v1.0 methods.
§Module overview
| Module | Contents |
|---|---|
limits | HandlerLimits — configurable per-handler bounds |
messaging | RequestHandler::on_send_message — send/stream entry point |
lifecycle | Get, list, cancel, resubscribe, extended agent card |
push_config | Push notification config CRUD |
event_processing | Event collection, state transitions, push delivery |
shutdown | Ending in-flight work, then graceful shutdown with optional timeout |
Structs§
- Halt
Report - What
RequestHandler::haltdid to the tasks that were running. - Handler
Limits - Configurable limits for the request handler.
- InFlight
Report - What
RequestHandler::cancel_in_flightdid. - Load
Report - What one replica holds now: see
RequestHandler::load. - Request
Handler - The core protocol logic handler.
- Shutdown
Report - What a shutdown actually managed to do.
Enums§
- Halt
Scope - What a halt applies to.
- Inbound
Trace Policy - What this deployment does with a
traceparentan unauthenticated peer sent it. - Send
Message Response - Represents the response for the
SendMessagemethod. - Send
Message Result - Result of
RequestHandler::on_send_message. - Terminal
Confirmation - What a streaming client is told when the task store does not confirm a terminal event the executor emitted.
Constants§
- DEFAULT_
HALT_ POLL_ INTERVAL - How often a handler with a halt store polls it, unless
with_halt_poll_intervalsets otherwise. - DEFAULT_
MAX_ LEASE_ TTL - The default longest lease a send may ask for.
- DEFAULT_
TURN_ CLAIM_ RENEWAL - How often a handler renews the claims it holds; also how long a cancel given on another replica takes, at most, to reach the executor.
- DEFAULT_
TURN_ CLAIM_ TTL - How long a claim lives without renewal: the longest a task stays unavailable after the replica running it dies.
- LOAD_
HEADER - The response header carrying the load, in the text form of an ORCA load
report:
TEXT application_utilization=0.250, named_metrics.running=3, named_metrics.queued=0. - MAX_
TENANT_ LEN - The longest tenant name a request may carry, in bytes.
- MIN_
LEASE_ TTL - The shortest lease a send may ask for.
- MIN_
MESSAGE_ ID_ LENGTH - The smallest bound
message.idmay be held to: the length of a hyphenated UUID. - MIN_
TURN_ CLAIM_ TTL - The shortest time to live
buildaccepts: under it, a renewal delayed by one slow database round trip can lose a live claim. - READINESS_
TIMEOUT - How long
RequestHandler::readinesswaits for the task store before it answers"timeout".