reminix.runtime.serve

reminix.runtime.serve(agents, *, host='0.0.0.0', port=8080)[source]

Start the HTTP server to serve agents.

Parameters:
  • agents (Agent | list[Agent]) – Single agent or list of agents to serve.

  • host (str) – Host to bind to (default: “0.0.0.0”).

  • port (int) – Port to listen on (default: 8080).

Return type:

None

Example:

from reminix.runtime import Agent, serve

agent = Agent(name="my-agent")

@agent.invoke
async def handle_invoke(input: dict):
    return {"output": "Hello!"}

serve([agent], port=8080)