plugins/gateways/types
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: client.Client,
tool_defs: List(tool_def.ToolDefinition),
max_rounds: Int,
persona: String,
session_store: behaviours.SessionStore,
guardrail: behaviours.Guardrail,
log: behaviours.Logger,
db_connector: behaviours.DbConnector,
db_path: String,
)
}
Constructors
-
GatewayConfig( conn: sqlight.Connection, client: client.Client, tool_defs: List(tool_def.ToolDefinition), max_rounds: Int, persona: String, session_store: behaviours.SessionStore, guardrail: behaviours.Guardrail, log: behaviours.Logger, db_connector: behaviours.DbConnector, db_path: String, )