plugins/gateways/shapes

Gateway shape — all gateways (built-in and user-provided) conform to this.

Types

pub type Gateway {
  Gateway(
    name: String,
    source_key: String,
    start: fn(GatewayConfig) -> Result(Nil, String),
    stop: fn() -> Nil,
  )
}

Constructors

  • Gateway(
      name: String,
      source_key: String,
      start: fn(GatewayConfig) -> Result(Nil, String),
      stop: fn() -> Nil,
    )
pub type GatewayConfig {
  GatewayConfig(
    conn: sqlight.Connection,
    client: completions.Client,
    tool_defs: List(completions.ToolDefinition),
    max_rounds: Int,
    persona: String,
  )
}

Constructors

Search Document