Skip to main content

check_budget

Function check_budget 

Source
pub fn check_budget(
    current_cost_usd: f64,
    current_tokens: u64,
    config: &BudgetConfig,
) -> BudgetDecision
Expand description

Check whether the current spend is within budget.