INNER CODE UNIT · Python

list_runs

tomascupr/sandstorm · src/sandstorm/main.py:287

async def list_runs(token: str | None = Depends(verify_api_token)):
    return run_store.list()


@app.get("/health", summary="Health check", description="Returns 200 if the server is running.")
async def health(deep: bool = Query(False, description="Run deep health checks")):
    result: dict = {"status": "ok", "version": __version__}
    if not deep:
        return result

    # Check configured API keys
    result["checks"] = {}
    result["checks"]["anthropic_api_key"] = bool(os.environ.get("ANTHROPIC_API_KEY"))
    result["checks"]["e2b_api_key"] = bool(os.environ.get("E2B_API_KEY"))

    # Check E2B API reachability
    try:
        import asyncio

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…