Expand description
AWS Lambda adapter for turul-a2a.
Thin wrapper: converts Lambda events to axum requests, delegates to the same Router, converts responses back. Per ADR-008/ADR-009:
- Authorizer context mapped via synthetic headers with anti-spoofing
- Streaming supported via durable event store (D3)
- SSE responses are buffered: task executes, events are collected, returned as one response
POST /message:streamexecutes the task within the Lambda invocation and returns all eventsGET /tasks/{id}:subscribereplays stored events (works best for terminal tasks)
Lambda streaming is request-scoped (not persistent SSE connections). The durable
event store ensures events survive across invocations. Clients reconnect with
Last-Event-ID for continuation.
Structs§
- Authorizer
Mapping - Mapping configuration for Lambda authorizer context.
- Lambda
A2aHandler - Lambda handler wrapping the axum Router.
- Lambda
A2aServer Builder - Builder for Lambda A2A handler.
- Lambda
Authorizer Middleware - Middleware that reads trusted authorizer context from x-authorizer-* headers.
- NoStreaming
Layer - Tower Layer that rejects streaming paths on Lambda.
Functions§
- axum_
to_ lambda_ response - Convert an axum response to a Lambda HTTP response.
- lambda_
to_ axum_ request - Convert a Lambda HTTP request to an axum request.