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(agent): tidy tool call format imports and defaults
Steven Enamakeld91ec2944a2a
diff --git a/crates/openhuman-core/src/agent/debug/wire.rs b/crates/openhuman-core/src/agent/debug/wire.rsindex 286d65de5c..6bf0034cb4 100644--- a/crates/openhuman-core/src/agent/debug/wire.rs+++ b/crates/openhuman-core/src/agent/debug/wire.rs@@ -34,7 +34,6 @@//! would advertise natively. Either way the total is the total, which is why//! the header reports it as one number.-use tinytools_agent::dialect::ToolCallFormat;use std::fmt::Write as _;use super::DumpedPrompt;diff --git a/crates/openhuman-core/src/agent/prompts/render_helpers/subagent.rs b/crates/openhuman-core/src/agent/prompts/render_helpers/subagent.rsindex 6b85cd2396..145c515593 100644--- a/crates/openhuman-core/src/agent/prompts/render_helpers/subagent.rs+++ b/crates/openhuman-core/src/agent/prompts/render_helpers/subagent.rs@@ -4,6 +4,7 @@//! [`SystemPromptBuilder::for_subagent`](crate::agent::prompts::builder::SystemPromptBuilder::for_subagent)//! for callers that only hold indices into the parent's tool vec.+use tinytools_agent::dialect::ToolCallFormat;use super::super::builder::GLOBAL_STYLE_SUFFIX;use super::super::sections::GROUNDING_BODY;use super::super::types::*;diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rsindex ba35cb0933..da37d9597a 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs@@ -544,9 +544,7 @@ impl OpenHumanTurnPrelude {session_id: self.event_session_id.clone(),channel: self.event_channel.clone(),connected_integrations,- tool_call_format: (- self.tool_dispatcher.tool_call_format(),- ),+ tool_call_format: self.tool_dispatcher.tool_call_format(),session_key: self.session_key.clone(),session_parent_prefix: self.session_parent_prefix.clone(),on_progress: self.on_progress.clone(),diff --git a/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs b/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rsindex d7202d026e..e349b5dc94 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs@@ -60,6 +60,7 @@//! host files into the prompt (and thence to the inference provider); this//! adapter goes through it rather than reading the files itself.+use tinytools_agent::dialect::ToolCallFormat;use std::collections::HashSet;use std::sync::Arc;@@ -95,7 +96,7 @@ pub struct OpenHumanContextComposer {/// it.model_name: String,/// How the tool catalogue renders. Left at the OpenHuman default- /// ([`ToolCallFormat::PFormat`]) unless the caller pins it, since the+ /// ([`ToolCallFormat::Json`]) unless the caller pins it, since the/// authoritative value lives on the agent's tool dispatcher, which is not/// reachable from a `TurnContextRequest`.tool_call_format: ToolCallFormat,