pub fn program<'a, L: Llm>(
llm: &'a L,
problem: &'a str,
) -> Program<'a, L, NoValidation>Expand description
Entry point for Program of Thought.
Creates a builder that generates code to solve problems.
ยงExamples
use kkachi::recursive::{MockLlm, program, cli};
let llm = MockLlm::new(|_, _| "```bash\necho 42\n```".to_string());
// Build a program executor (call .go() to run)
let builder = program(&llm, "Print 42")
.executor(cli("bash").stdin())
.max_iter(3);