INNER CODE UNIT · Python
OmniServe
omnirexflora-labs/omnicoreagent · src/omnicoreagent/serve/server.py:26
class OmniServe:
"""
Production-ready FastAPI server for OmniCoreAgent.
Transforms an OmniCoreAgent into a full REST/SSE API server.
Features:
- SSE streaming for agent responses (/run)
- Synchronous JSON responses (/run/sync)
- Health and readiness endpoints
- Session management
- Metrics and tools listing
- Configurable middleware (CORS, auth, logging)
- Proper lifecycle management
Usage:
from omnicoreagent import OmniCoreAgent, OmniServe