Skip to content

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

chore: files changed crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs,crates/openhuman

Steven Enamakel0d8c44d4c523
diff --git a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs
index a1f5d075e0..8fd2b515e9 100644
--- a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs
@@ -22,7 +22,8 @@ use crate::agent::tinyagents::harness_tool_registration::register_turn_tools_and
use crate::agent::tinyagents::host::steering;
use crate::agent::tinyagents::host::OpenHumanRunContext;
use crate::agent::tinyagents::middleware::{self, TurnContextMiddleware};
-use crate::agent::tinyagents::model::{ErrorSlotModel, TurnChatModel};
+use crate::agent::tinyagents::model::TurnChatModel;
+use tinyinference_llm::model::ErrorSlotModel;
use crate::agent::tinyagents::observability::{
IterationCursor, ProviderUsageCarry, SubagentScope, ToolFailureMap, ToolNameMap,
};
diff --git a/crates/openhuman-core/src/agent/tinyagents/payload_summarizer.rs b/crates/openhuman-core/src/agent/tinyagents/payload_summarizer.rs
index 6745090fa1..cb0e7055fb 100644
--- a/crates/openhuman-core/src/agent/tinyagents/payload_summarizer.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/payload_summarizer.rs
@@ -136,7 +136,7 @@ impl PayloadSummarizer for SubagentPayloadSummarizer {
let mut harness: AgentHarness<(), OpenHumanRunContext> = AgentHarness::new();
harness.with_policy(policy);
- let provider_model = super::model::MaxTokensModel::new(
+ let provider_model = tinyinference_llm::model::MaxTokensModel::new(
source.build_summarizer(
&model,
definition.temperature,
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_models.rs b/crates/openhuman-core/src/agent/tinyagents/turn_models.rs
index 8d6a769526..7397264b15 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_models.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_models.rs
@@ -5,9 +5,8 @@ use std::sync::Arc;
use async_trait::async_trait;
-use crate::agent::tinyagents::model::{
- BuiltTurnModels, ErrorSlotModel, ProfileOverrideModel, TierRoutes, TurnChatModel,
-};
+use crate::agent::tinyagents::model::{BuiltTurnModels, TierRoutes, TurnChatModel};
+use tinyinference_llm::model::{ErrorSlotModel, ProfileOverrideModel};
use crate::agent::tinyagents::routes;
use tinyagents_harness::host::{ModelResolveRequest, ModelResolver};
use tinyinference_llm::model::{ResolvedModelRoute, RouteRecordingModel};
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_run_error.rs b/crates/openhuman-core/src/agent/tinyagents/turn_run_error.rs
index 9cbbf3be24..9f0296c870 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_run_error.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_run_error.rs
@@ -81,7 +81,7 @@ pub(super) async fn map_turn_run_error(
model,
"[tinyagents] re-surfacing typed provider error from error_slot as the run failure — #4457 defect B"
);
- return original;
+ return anyhow::Error::new(original);
}
anyhow::anyhow!("tinyagents harness run failed: {e}")
}
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops_schema_and_structured_output_tests.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops_schema_and_structured_output_tests.rs
index e8aa7cb828..cb7a7c1662 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops_schema_and_structured_output_tests.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops_schema_and_structured_output_tests.rs
@@ -98,7 +98,7 @@ fn crate_model_response_preserves_flow_completion_contract() {
},
usage: Some(usage),
finish_reason: Some("tool_calls".to_string()),
- raw: crate::agent::tinyagents::model::merge_openhuman_usage_meta(
+ raw: tinyinference_llm::usage::merge_usage_meta(
None,
Some(0.125),
128_000,
diff --git a/crates/openhuman-core/src/inference/provider/openhuman_backend_model_usage.rs b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_usage.rs
index a974f01891..eda6f339b7 100644
--- a/crates/openhuman-core/src/inference/provider/openhuman_backend_model_usage.rs
+++ b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_usage.rs
@@ -65,7 +65,7 @@ pub(super) fn project_managed_usage(mut response: ModelResponse) -> ModelRespons
}
}
- response.raw = crate::agent::tinyagents::model::merge_openhuman_usage_meta(
+ response.raw = tinyinference_llm::usage::merge_usage_meta(
response.raw,
charged_amount_usd,
context_window,