Function run_once

Source
pub async fn run_once(
    init_msgs: Vec<Message>,
    model: Model,
) -> Result<RunOnceResult>
Expand description

Convenience function for simple one-shot runs with default tool configuration. Creates a temporary SessionManager for this single operation.

  • init_msgs – seed conversation (system + user or multi-turn)
  • model – which LLM to use