INNER CODE UNIT · Python

api_report_pdf

marc-shade/world-intel-mcp · src/world_intel_mcp/dashboard/app.py:589

async def api_report_pdf(request):
    """PDF report generation (removed — use the live dashboard instead)."""
    return JSONResponse(
        {"error": "PDF reports removed — use the live dashboard at /"},
        status_code=410,
    )


async def sse_vector_analytics(request):
    """SSE endpoint — pushes vector store analytics every 30 seconds."""

    async def event_generator():
        while True:
            try:
                payload = await _fetch_vector_analytics()
                yield f"data: {json.dumps(payload, default=str)}\n\n"
            except asyncio.CancelledError:
                return

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…