INNER CODE UNIT · Python

main

TianGzlab/OmicsClaw · omicsclaw/memory/server.py:151

def main():
    """Entry point for running the memory API server."""
    if not _HAS_FASTAPI:
        print("ERROR: FastAPI is not installed.")
        print(f"Install with: {_MEMORY_SERVER_INSTALL_HINT}")
        print("Minimal alternative: pip install fastapi uvicorn")
        raise SystemExit(1)

    try:
        import uvicorn
    except ImportError:
        print("ERROR: uvicorn is not installed.")
        print(f"Install with: {_MEMORY_SERVER_INSTALL_HINT}")
        print("Minimal alternative: pip install fastapi uvicorn")
        raise SystemExit(1)

    host = os.getenv("OMICSCLAW_MEMORY_HOST", DEFAULT_MEMORY_API_HOST)
    port = int(os.getenv("OMICSCLAW_MEMORY_PORT", str(DEFAULT_MEMORY_API_PORT)))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…