wireframe

Wireframe — composition root. Convenience wrappers around services/loop/runner. Callers can import this for simple use, or runner directly for full control.

Values

pub fn run(
  client: client.Client,
  persona: String,
  history: List(message.Message),
  user_message: String,
  max_rounds: Int,
  conn: sqlight.Connection,
  user_key: String,
  session_id: String,
) -> orchestrator.LoopResult

Run a conversation turn with default tools and auto-deny approvals.

pub fn run_with(
  client: client.Client,
  persona: String,
  history: List(message.Message),
  user_message: String,
  tool_defs: List(tool_def.ToolDefinition),
  max_rounds: Int,
  all_tools: List(tool.Tool),
  conn: sqlight.Connection,
  user_key: String,
  session_id: String,
  approval_handler: fn(tool.ApprovalRequest) -> tool.ApprovalResponse,
) -> orchestrator.LoopResult

Run a conversation turn with custom tools and approval handler.

Search Document