The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed crates/openhuman-core/src/agent/tinyagents/mod.rs,crates/openhuman-core/src/age
Steven Enamakel8bc22e60f645
diff --git a/crates/openhuman-core/src/agent/tinyagents/mod.rs b/crates/openhuman-core/src/agent/tinyagents/mod.rsindex 53b79b137b..ae4529a798 100644--- a/crates/openhuman-core/src/agent/tinyagents/mod.rs+++ b/crates/openhuman-core/src/agent/tinyagents/mod.rs@@ -96,3 +96,6 @@ use turn_policy::{#[cfg(test)]#[path = "tinyagents_tests.rs"]mod tests;+#[cfg(test)]+#[path = "prompt_cache_golden_tests.rs"]+mod prompt_cache_golden_tests;diff --git a/crates/openhuman-core/src/agent/tinyagents/prompt_cache_golden_tests.rs b/crates/openhuman-core/src/agent/tinyagents/prompt_cache_golden_tests.rsindex b93375b41d..eb2c3d85e5 100644--- a/crates/openhuman-core/src/agent/tinyagents/prompt_cache_golden_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/prompt_cache_golden_tests.rs@@ -87,12 +87,14 @@ async fn run(s: &Scenario) -> Value {let mut policy = run_policy_for(8, false);policy.tool_dialect = s.dialect;harness.with_policy(policy);+ harness.push_middleware(Arc::new(super::middleware::PromptCacheSegmentMiddleware)); // BEFORE-ONLYharness.push_middleware(Arc::new(PromptCacheGuardMiddleware::new()));let host = OpenHumanRunContext::new().with_tool_dialect(s.dialect);let mut ctx = host.into_tinyagents(RunConfig::new("golden"));if let Some(frozen) = s.frozen {ctx = ctx.with_frozen_system_prefix_len(frozen);+ ctx.data.cacheable_system_prefix_len = Some(frozen); // BEFORE-ONLY}harness.invoke_in_context(&(), ctx, s.input.clone())