langgraph_agent_toolkit.service.handler module
- async langgraph_agent_toolkit.service.handler.shutdown_observability(observability)[source][source]
Give synchronous telemetry flush a deadline without blocking worker exit.
- Return type:
None
- langgraph_agent_toolkit.service.handler.lifespan(app)[source]
Initialize all required resources or fail worker startup.
- Parameters:
app (FastAPI)
- Return type:
AsyncGenerator[None, None]
- langgraph_agent_toolkit.service.handler.custom_generate_unique_id(route)[source][source]
Use the route function name as its OpenAPI operationId.
This produces client-friendly IDs, such as invoke instead of invoke_invoke_post. Routes that share a function set operation_id on the /{agent_id}/… decorator.
- Parameters:
route (APIRoute)
- Return type:
str