Skip to main content

Module handler

Module handler 

Source
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

ModuleContents
limitsHandlerLimits — configurable per-handler bounds
messagingRequestHandler::on_send_message — send/stream entry point
lifecycleGet, list, cancel, resubscribe, extended agent card
push_configPush notification config CRUD
event_processingEvent collection, state transitions, push delivery
shutdownEnding in-flight work, then graceful shutdown with optional timeout

Structs§

HaltReport
What RequestHandler::halt did to the tasks that were running.
HandlerLimits
Configurable limits for the request handler.
InFlightReport
What RequestHandler::cancel_in_flight did.
LoadReport
What one replica holds now: see RequestHandler::load.
RequestHandler
The core protocol logic handler.
ShutdownReport
What a shutdown actually managed to do.

Enums§

HaltScope
What a halt applies to.
InboundTracePolicy
What this deployment does with a traceparent an unauthenticated peer sent it.
SendMessageResponse
Represents the response for the SendMessage method.
SendMessageResult
Result of RequestHandler::on_send_message.
TerminalConfirmation
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_interval sets 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.id may be held to: the length of a hyphenated UUID.
MIN_TURN_CLAIM_TTL
The shortest time to live build accepts: under it, a renewal delayed by one slow database round trip can lose a live claim.
READINESS_TIMEOUT
How long RequestHandler::readiness waits for the task store before it answers "timeout".