What problem does it solve? Building secure, consistent backend endpoints for the Portal Centralizado de Datos Financieros requires enforcing authentication scopes, typed error responses, and streaming chat behavior across every router, which is error-prone when done by hand. ## Core Features & Use Cases - Scoped Endpoint Creation: Generates FastAPI routers with Security(get_current_user, scopes=[...]) enforcement, returning 401 without a token and 403 without permission. - Typed Error Handling: Produces standardized errors such as 422 with fuzzy catalog suggestions for unknown metrics, 409 for duplicate users, and 503 for unavailable silos. - SSE Chat Streaming: Implements /api/chat as a StreamingResponse with tool_call, token, error, and done events, cancelling the LLM call when the client disconnects. - Use Case: Add a new /api/creditos endpoint that delegates to SemanticService, enforces the operativo scope, and returns a Pydantic SemanticResult model. ## Quick Start Create a new FastAPI router for the creditos endpoint with scope enforcement and Pydantic response models following the portal conventions.