M3: model pricing and per-step cost accumulation

Extends the model catalog with per-token pricing and accumulates cost per engine step, threading the running total through the store and up into harness-app so it can be surfaced in the UI.
This commit is contained in:
2026-07-10 16:19:59 +02:00
parent a3f6fd6378
commit a99edc116a
7 changed files with 151 additions and 11 deletions
+2
View File
@@ -254,6 +254,8 @@ impl EngineHandle {
temperature: None,
max_steps: DEFAULT_MAX_STEPS,
instructions: self.inner.config.instructions.clone(),
// Populated from models.dev metadata in the follow-up increment.
cost: None,
};
// Reserve the run slot *before* spawning. If we inserted after spawning, a run that