Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(inference): rename budget wrap to wrap_model and pin resolver type

Steven Enamakel911eb52620d0
diff --git a/crates/openhuman-core/src/agent/tinyagents/payload_summarizer.rs b/crates/openhuman-core/src/agent/tinyagents/payload_summarizer.rs
index e384feca9b..73b8f07457 100644
--- a/crates/openhuman-core/src/agent/tinyagents/payload_summarizer.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/payload_summarizer.rs
@@ -145,7 +145,7 @@ impl HarnessPayloadSummarizer<OpenHumanRunContext> for SubagentPayloadSummarizer
let provider_model: Arc<dyn tinyinference_llm::model::ChatModel<()>> =
Arc::new(provider_model);
let provider_model = match &child_context.data.model_budget {
- Some(budget) => budget.wrap(provider_model),
+ Some(budget) => budget.wrap_model(provider_model),
None => provider_model,
};
// Unary, never streaming: a streaming child would publish the
diff --git a/crates/openhuman-core/src/inference/host_runtime/ops/complete_once.rs b/crates/openhuman-core/src/inference/host_runtime/ops/complete_once.rs
index 0bfb084da7..0271ca1ab0 100644
--- a/crates/openhuman-core/src/inference/host_runtime/ops/complete_once.rs
+++ b/crates/openhuman-core/src/inference/host_runtime/ops/complete_once.rs
@@ -101,7 +101,7 @@ pub async fn complete_once(
let model: std::sync::Arc<dyn ChatModel<()>> = std::sync::Arc::new(model);
let model = match budget {
- Some(budget) => budget.wrap(model),
+ Some(budget) => budget.wrap_model(model),
None => model,
};
model
diff --git a/crates/openhuman-core/src/inference/turn_models_tests.rs b/crates/openhuman-core/src/inference/turn_models_tests.rs
index 4b87a76be2..3138ba3249 100644
--- a/crates/openhuman-core/src/inference/turn_models_tests.rs
+++ b/crates/openhuman-core/src/inference/turn_models_tests.rs
@@ -75,7 +75,7 @@ async fn name_of(model: &Arc<dyn ChatModel<()>>) -> String {
.collect()
}
-fn resolver() -> TurnModelResolver {
+fn resolver() -> TurnModelResolver<()> {
let primary: Arc<dyn ChatModel<()>> =
Arc::new(NamedModel("openrouter/deepseek/deepseek-v4.1-flash"));
let mut routes: HashMap<String, Arc<dyn ChatModel<()>>> = HashMap::new();