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
refactor(session_host): use dialect helpers directly
Steven Enamakel4cc7678bcdcd
diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rsindex 6730c02c39..722a323751 100644--- a/crates/openhuman-core/src/agent/session_host/driver.rs+++ b/crates/openhuman-core/src/agent/session_host/driver.rs@@ -184,10 +184,7 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {// composed for: a text dialect strips schemas off the wire and needs// the positional registry to recover P-Format / code-style calls.let run_context = request.run_context.data.clone().with_tool_dialect(- (- self.dispatcher.tool_call_format(),- )- .harness_dispatcher(),+ tinyagents_harness::dialect::dispatcher_for_format(self.dispatcher.tool_call_format()),);let cancellation = request.run_context.cancellation.clone();// Boxed: the graph future is very large, and holding it inline in thediff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rsindex 3260aac8be..ba35cb0933 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs@@ -330,9 +330,7 @@ impl OpenHumanTurnPrelude {workflows: &mutable.workflows,dispatcher_instructions: &instructions,visible_tool_names: &visible_tool_names,- tool_call_format: tool_call_format_from_dialect(- self.tool_dispatcher.tool_call_format(),- ),+ tool_call_format: self.tool_dispatcher.tool_call_format(),connected_integrations: &mutable.connected_integrations,connected_identities_md: crate::agent::prompts::render_connected_identities(),user_identity: crate::security::credentials::identity::peek_credential_user_identity(),@@ -505,10 +503,7 @@ impl OpenHumanTurnPrelude {// the prompt was composed for, so a text dialect keeps its schemas off// the wire and renders the catalogue itself (`ToolsSection` no longer// does), and a code call is recovered against the positional registry.- run_context.tool_dialect = (- self.tool_dispatcher.tool_call_format(),- )- .harness_dispatcher();+ run_context.tool_dialect = tinyagents_harness::dialect::dispatcher_for_format(self.tool_dispatcher.tool_call_format());format!("{}\n\n{enriched}", turn.preamble())}diff --git a/crates/openhuman-core/src/agent/session_host/turn/context.rs b/crates/openhuman-core/src/agent/session_host/turn/context.rsindex 827cb1b637..a3d8743dbb 100644--- a/crates/openhuman-core/src/agent/session_host/turn/context.rs+++ b/crates/openhuman-core/src/agent/session_host/turn/context.rs@@ -56,9 +56,7 @@ impl OpenHumanSessionHost {workflows: &self.workflows,dispatcher_instructions: &instructions,visible_tool_names: &prompt_visible_tool_names,- tool_call_format: tool_call_format_from_dialect(- self.tool_dispatcher.tool_call_format(),- ),+ tool_call_format: self.tool_dispatcher.tool_call_format(),connected_integrations: &self.connected_integrations,connected_identities_md: crate::agent::prompts::render_connected_identities(),user_identity: crate::security::credentials::identity::peek_credential_user_identity(),