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/turn_plan.rs

Steven Enamakelc2dcc3a3fdfe
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_plan.rs b/crates/openhuman-core/src/agent/tinyagents/turn_plan.rs
index 86e84f897f..8158f3c9ff 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_plan.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_plan.rs
@@ -16,7 +16,7 @@ use async_trait::async_trait;
use tinyagents_harness::runtime::RunPolicy;
use tinyagents_registry::{DiagnosticSeverity, RegistryDiagnostic};
use tinyagents_runtime::turn_driver::{SharedToolSet, TurnPlan, TurnPlanner};
-use tinyagents_runtime::{DriverRequest, RuntimeError};
+use tinyagents_runtime::{DriverRequest, NestedSpawnDepth, RuntimeError};
use tinyinference_llm::model::ErrorSlotModel;
use crate::agent::tinyagents::host::OpenHumanRunContext;
@@ -126,6 +126,10 @@ impl TurnPlanner<(), OpenHumanRunContext> for OpenHumanTurnPlanner {
self.has_thread,
&self.session_deferred,
&request.run_context.data,
+ NestedSpawnDepth::try_new(
+ request.run_context.config.depth(),
+ request.run_context.config.max_depth(),
+ ),
);
// A turn driven outside a `Session` has no frozen tool declaration to
// compare against; the registration above is the authority.