plugins/gateways/supervisor

Gateway supervisor — manages supervised gateways. Starts gateways flagged supervised: True and provides coordinated start/stop/health.

Types

pub type SupervisorState {
  SupervisorState(telegram_started: Bool)
}

Constructors

  • SupervisorState(telegram_started: Bool)

Values

pub fn health(state: SupervisorState) -> Bool

Health check for all gateways.

pub fn start(
  log: behaviours.Logger,
  conn: sqlight.Connection,
  completions_client: client.Client,
  tool_defs: List(tool_def.ToolDefinition),
  max_rounds: Int,
  persona: String,
  session_store: behaviours.SessionStore,
  guardrail: behaviours.Guardrail,
  db_connector: behaviours.DbConnector,
  db_path: String,
) -> Result(SupervisorState, String)

Start all supervised gateways. Returns supervisor state.

pub fn stop(
  log: behaviours.Logger,
  state: SupervisorState,
) -> Nil

Stop all gateways.

Search Document