Skip to content

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

feat(agent): add tinyagents turn execution module

Steven Enamakel578975a08fa9
diff --git a/crates/openhuman-core/src/agent/tinyagents/mod.rs b/crates/openhuman-core/src/agent/tinyagents/mod.rs
index ffada0ecdc..b08bb357a6 100644
--- a/crates/openhuman-core/src/agent/tinyagents/mod.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/mod.rs
@@ -8,7 +8,7 @@
//! **adapter seam**: it bridges openhuman's `Provider`, `Tool`, and `TranscriptMessage`
//! types onto the crate's `ChatModel`, `Tool`, and `Message` traits, then drives
//! a turn through [`AgentHarness::invoke`]. The chat / channel / sub-agent
-//! routes call [`run_turn_via_tinyagents_shared`] (default ON in production).
+//! routes drive a turn through [`TurnSpec`].
//!
//! The chat route is at functional parity with the legacy `run_turn_engine`:
//! the [`OpenhumanEventBridge`] mirrors the harness event stream onto
@@ -88,7 +88,7 @@ pub(crate) use turn_policy::{
agent_turn_wall_clock_ms_for, chat_provider_is_local, local_web_turn_backstop_secs,
ToolPolicyEnforcement,
};
-pub(crate) use turn_exec::{run_root_turn_via_hosted_agent, run_turn_via_tinyagents_shared};
+pub(crate) use turn_exec::TurnSpec;
// Test-only glue so `tinyagents_tests.rs`'s `use super::*;` sees the
// lower-level policy helpers it exercises directly (they otherwise stay
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs b/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs
index d731b08a4d..99da1b39dc 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs
@@ -1,8 +1,8 @@
//! Drive an openhuman agent turn through the `tinyagents` runtime turn driver.
//!
//! [`TurnSpec::run`] is the entry point the channel and sub-agent routes use and
-//! [`TurnSpec::run_hosted`] the one for hosted root turns. Both plan the turn with [`OpenHumanTurnPlanner`], let
-//! `tinyagents_runtime::turn_driver::TurnDriver` assemble and wire the harness
+//! [`TurnSpec::run_hosted`] the one for hosted root turns. Both plan the turn
+//! with [`OpenHumanTurnPlanner`], let `tinyagents_runtime::turn_driver::TurnDriver` assemble and wire the harness
//! (models, run policy, tools, steering, early exit, the cap pause), then install
//! the host middleware stack ([`turn_middleware`](super::turn_middleware)) and
//! finalize the run into a [`TinyagentsTurnOutcome`].