get_app
get_app
Get the fully initialized FastAPI application instance. If the app has not been
created yet, this method initializes it with all routes, middleware, health checks,
and security headers — the same configuration that serve() would create.
This is primarily used with deployment adapters like Mangum (AWS Lambda) or when embedding the agent in a larger FastAPI application.
Parameters
None.
Returns
FastAPI — The configured FastAPI application instance with all agent endpoints
registered.