INNER CODE UNIT · Python
start
omnirexflora-labs/omnicoreagent · src/omnicoreagent/serve/server.py:107
def start(
self,
host: Optional[str] = None,
port: Optional[int] = None,
workers: Optional[int] = None,
sock: Optional[socket.socket] = None,
) -> None:
"""
Start the server (blocking).
Args:
host: Host to bind to (overrides config)
port: Port to bind to (overrides config)
workers: Worker process count. Direct OmniServe requires 1 because
the served agent instance lives in the current process.
sock: A socket already listening on host and port (from
``bind_server_socket``), held while the agent loaded.
"""