pub async fn settle_run_cost(
inputs: RunCostInputs<'_>,
cost_budget: &CostBudgetTracker,
persistence: Option<&Arc<dyn PersistenceLayer>>,
sink: &dyn RuntimeEventSink,
) -> Option<f64>Expand description
Report per-call cost and emit a budget alert plus unresolved-accounting diagnostic.
Returns the estimated cost, or None when cost tracking is disabled or the
model is unpriced. This does not charge again: the host driver owns stable
per-call settlements. Execution completion and accounting completion are separate.