agent_supervisor

Root supervisor for the agent daemon. Coordinates service and gateway supervisors for startup/shutdown/health.

Types

pub type State {
  State(
    services: supervisor.SupervisorState,
    gateways: supervisor.SupervisorState,
  )
}

Constructors

Values

pub fn health(state: State) -> Bool

Check health of all supervised components.

pub fn start(
  db_path: String,
  conn: sqlight.Connection,
  completions_client: completions.Client,
  tool_defs: List(completions.ToolDefinition),
  tools: List(tool.Tool),
  max_rounds: Int,
  persona: String,
  user_key: String,
) -> Result(State, String)

Start the full supervision tree.

pub fn stop(state: State) -> Nil

Stop all supervised components.

Search Document