Skip to main content

Ask

Type Alias Ask 

Source
pub type Ask<'a> = &'a (dyn Fn(&str, &Value) -> Option<(Value, Option<f64>)> + Sync);
Expand description

The model call: (prompt, JSON schema) -> (answer, cost in USD). learn::ask_model in production.