Skip to main content

ask_model

Function ask_model 

Source
pub fn ask_model(prompt: &str, schema: &Value) -> Option<(Value, Option<f64>)>
Expand description

The model call behind ask_claude, for any JSON schema: the structured answer and its cost in USD (None when the CLI reported none). BORG_LEARN_MODEL picks the model, runner::choose the CLI.