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(prompts): use ToolCallFormat from tinytools_agent
Steven Enamakelb775623e57b6
diff --git a/crates/openhuman-core/src/agent/debug/wire.rs b/crates/openhuman-core/src/agent/debug/wire.rsindex 6bf0034cb4..286d65de5c 100644--- a/crates/openhuman-core/src/agent/debug/wire.rs+++ b/crates/openhuman-core/src/agent/debug/wire.rs@@ -34,6 +34,7 @@//! 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/harness/fork_context.rs b/crates/openhuman-core/src/agent/harness/fork_context.rsindex a185d5cdcc..b9a24c4016 100644--- a/crates/openhuman-core/src/agent/harness/fork_context.rs+++ b/crates/openhuman-core/src/agent/harness/fork_context.rs@@ -121,7 +121,7 @@ pub struct ParentExecutionContext {/// this, sub-agents inherit a hardcoded PFormat default while the/// runtime uses native function-calling, and the model emits/// uncallable P-Format tool_call blocks.- pub tool_call_format: crate::agent::prompts::ToolCallFormat,+ pub tool_call_format: tinytools_agent::dialect::ToolCallFormat,/// Parent's own session-transcript key, formatted as/// `"{unix_ts}_{agent_id}"`. Sub-agents chain this (plus anydiff --git a/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs b/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rsindex 0d3bd96c62..e8510c86f0 100644--- a/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs@@ -16,7 +16,7 @@ use async_trait::async_trait;use super::*;use crate::agent::harness::fork_context::{with_parent_context, ParentExecutionContext};use crate::agent::harness::host_definition::AgentDefinitionRegistry;-use crate::agent::prompts::ToolCallFormat;+use tinytools_agent::dialect::ToolCallFormat;use crate::config::{AgentConfig, Config};use tinyagents_orchestration::teams::{SessionTeamLedger, TeamService};use tinyagents_session::run_ledger::{diff --git a/crates/openhuman-core/src/agent/orchestration/ops_tests.rs b/crates/openhuman-core/src/agent/orchestration/ops_tests.rsindex a4d3949db9..bf555393ec 100644--- a/crates/openhuman-core/src/agent/orchestration/ops_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/ops_tests.rs@@ -1,7 +1,7 @@use super::*;use crate::agent::harness::fork_context::{with_parent_context, ParentExecutionContext};use crate::agent::harness::host_definition::AgentDefinitionRegistry;-use crate::agent::prompts::ToolCallFormat;+use tinytools_agent::dialect::ToolCallFormat;use crate::config::AgentConfig;use async_trait::async_trait;use parking_lot::Mutex;diff --git a/crates/openhuman-core/src/agent/orchestration/parent_context/builder.rs b/crates/openhuman-core/src/agent/orchestration/parent_context/builder.rsindex 91660b9848..51d2385189 100644--- a/crates/openhuman-core/src/agent/orchestration/parent_context/builder.rs+++ b/crates/openhuman-core/src/agent/orchestration/parent_context/builder.rs@@ -114,7 +114,7 @@ pub(crate) async fn build_root_parent(session_id: format!("{session_prefix}-{}", uuid::Uuid::new_v4()),channel: channel.to_string(),connected_integrations: agent.connected_integrations().to_vec(),- tool_call_format: crate::agent::prompts::ToolCallFormat::PFormat,+ tool_call_format: tinytools_agent::dialect::ToolCallFormat::PFormat,session_key: agent.session_key().to_string(),session_parent_prefix: agent.session_parent_prefix().map(str::to_string),on_progress: None,diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rsindex eee428599b..a094c6e503 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rs@@ -271,7 +271,7 @@ async fn unscoped_async_spawn_refuses_before_persisting_a_running_session() {session_id: PARENT.into(),channel: "test".into(),connected_integrations: Vec::new(),- tool_call_format: crate::agent::prompts::ToolCallFormat::Native,+ tool_call_format: tinytools_agent::dialect::ToolCallFormat::Native,session_key: "scope-refusal-parent".into(),session_parent_prefix: None,on_progress: None,diff --git a/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rsindex 0b0bfb503e..935ba27386 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs@@ -1,6 +1,6 @@use super::*;use crate::agent::harness::fork_context::ParentExecutionContext;-use crate::agent::prompts::ToolCallFormat;+use tinytools_agent::dialect::ToolCallFormat;use crate::config::AgentConfig;use std::collections::HashSet;use std::path::Path;diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rsindex c7cd112121..0cfce3f0e2 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs@@ -1,7 +1,7 @@use super::*;use crate::agent::harness::fork_context::{with_parent_context, ParentExecutionContext};use crate::agent::harness::host_definition::AgentDefinitionRegistry;-use crate::agent::prompts::ToolCallFormat;+use tinytools_agent::dialect::ToolCallFormat;use crate::config::AgentConfig;use std::collections::HashSet;use std::path::Path;diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rsindex 261c226647..b3c424ca28 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs@@ -6,7 +6,7 @@ use crate::agent::orchestration::spawn_parallel::{prepare_spawn_parallel_tasks_from_defs, ParallelTaskRejectionKind, SpawnParallelTaskPreflight,};use tinyagents_orchestration::parallel::WorkerDispatchMode;-use crate::agent::prompts::ToolCallFormat;+use tinytools_agent::dialect::ToolCallFormat;use crate::agent::tinyagents::host::OpenHumanRunContext;use crate::agent::OpenHumanSessionHost;use crate::config::AgentConfig;diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rsindex c6fed7637e..e08dca1ed0 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_worker_thread_tests.rs@@ -36,7 +36,7 @@ fn test_parent_ctx(workspace_dir: PathBuf) -> ParentExecutionContext {on_progress: None,run_queue: None,agent_config: crate::config::AgentConfig::default(),- tool_call_format: crate::agent::prompts::ToolCallFormat::Native,+ tool_call_format: tinytools_agent::dialect::ToolCallFormat::Native,}}diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rsindex e3993cd269..918619c889 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs@@ -1,7 +1,8 @@+use tinytools_agent::dialect::ToolCallFormat;use super::{ArchetypeDelegationTool, DelegationTarget, SpawnSubagentTool, SpawnWorkerThreadTool};use crate::agent::harness::host_definition::AgentDefinitionRegistry;use crate::agent::harness::{with_parent_context, ParentExecutionContext};-use crate::agent::prompts::{ConnectedIntegration, ToolCallFormat};+use crate::agent::prompts::{ConnectedIntegration};use crate::threads::store as conversations;use async_trait::async_trait;use parking_lot::Mutex;diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests.rsindex b30d303618..1b3ba6e1c3 100644--- a/crates/openhuman-core/src/agent/prompts/mod_tests.rs+++ b/crates/openhuman-core/src/agent/prompts/mod_tests.rs@@ -1,3 +1,4 @@+use tinytools_agent::dialect::ToolCallFormat;use super::*;use async_trait::async_trait;use std::collections::HashSet;diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests_agents_md_registration_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests_agents_md_registration_tests.rsindex a7e42495e9..54dad199db 100644--- a/crates/openhuman-core/src/agent/prompts/mod_tests_agents_md_registration_tests.rs+++ b/crates/openhuman-core/src/agent/prompts/mod_tests_agents_md_registration_tests.rs@@ -1,3 +1,4 @@+use tinytools_agent::dialect::ToolCallFormat;use super::*;#[test]diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rsindex 0471d7dabe..c971a92789 100644--- a/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs+++ b/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs@@ -1,3 +1,4 @@+use tinytools_agent::dialect::ToolCallFormat;use super::*;#[test]diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests_tools_sections_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests_tools_sections_tests.rsindex 6df83a5e7e..af5c2bbfb2 100644--- a/crates/openhuman-core/src/agent/prompts/mod_tests_tools_sections_tests.rs+++ b/crates/openhuman-core/src/agent/prompts/mod_tests_tools_sections_tests.rs@@ -1,3 +1,4 @@+use tinytools_agent::dialect::ToolCallFormat;use super::*;#[test]diff --git a/crates/openhuman-core/src/agent/prompts/render_helpers/section_renderers.rs b/crates/openhuman-core/src/agent/prompts/render_helpers/section_renderers.rsindex c5a7c83831..bebc5e037f 100644--- a/crates/openhuman-core/src/agent/prompts/render_helpers/section_renderers.rs+++ b/crates/openhuman-core/src/agent/prompts/render_helpers/section_renderers.rs@@ -2,6 +2,7 @@//! [`crate::agent::prompts::sections`], plus the per-turn datetime stamp and the//! ambient-environment composer that `agents/<id>/prompt.rs` builders call.+use tinytools_agent::dialect::ToolCallFormat;use super::super::sections::*;use super::super::types::*;use anyhow::Result;diff --git a/crates/openhuman-core/src/agent/prompts/sections.rs b/crates/openhuman-core/src/agent/prompts/sections.rsindex 519a68f765..6c9929dcc5 100644--- a/crates/openhuman-core/src/agent/prompts/sections.rs+++ b/crates/openhuman-core/src/agent/prompts/sections.rs@@ -5,6 +5,7 @@//! [`super::render_helpers`] for workspace-file injection and//! sub-agent plumbing.+use tinytools_agent::dialect::ToolCallFormat;use super::render_helpers::{inject_workspace_file, sync_workspace_file};use super::types::*;use anyhow::Result;diff --git a/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rsindex 62f3d4719d..37a4a0da25 100644--- a/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rs@@ -5,9 +5,10 @@//! [`load_builtins`] returns, so an agent added tomorrow is covered without//! anyone writing a test for it.+use tinytools_agent::dialect::ToolCallFormat;use super::load_builtins;use crate::agent::harness::host_definition::AgentDefinition;-use crate::agent::prompts::{PromptContext, ToolCallFormat};+use crate::agent::prompts::{PromptContext};use std::collections::{BTreeMap, BTreeSet, HashSet};use std::sync::Arc;use tinyagents_definition::{PromptSource, SubagentEntry, ToolScope};diff --git a/crates/openhuman-core/src/agent/registry/agents/image_agent/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/image_agent/prompt_tests.rsindex c06de50cd9..f9258a7efe 100644--- a/crates/openhuman-core/src/agent/registry/agents/image_agent/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/image_agent/prompt_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::prompts::ToolCallFormat;+use tinytools_agent::dialect::ToolCallFormat;use std::collections::HashSet;#[test]diff --git a/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs b/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rsindex 8d78666c13..cfbdc34bc0 100644--- a/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs@@ -1,3 +1,4 @@+use tinytools_agent::dialect::ToolCallFormat;use super::*;#[test]@@ -152,7 +153,7 @@ fn coding_agent_prompts_reference_action_sandbox_not_stale_workspace() {#[test]fn every_builtin_has_a_prompt_body() {- use crate::agent::prompts::{ConnectedIntegration, PromptContext, PromptTool, ToolCallFormat};+ use crate::agent::prompts::{ConnectedIntegration, PromptContext, PromptTool};let empty_tools: Vec<PromptTool<'_>> = Vec::new();let empty_integrations: Vec<ConnectedIntegration> = Vec::new();let empty_visible: std::collections::HashSet<String> = std::collections::HashSet::new();diff --git a/crates/openhuman-core/src/agent/registry/agents/morning_briefing/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/morning_briefing/prompt_tests.rsindex 6f4bbbf5bb..623c3cc9d7 100644--- a/crates/openhuman-core/src/agent/registry/agents/morning_briefing/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/morning_briefing/prompt_tests.rs@@ -1,5 +1,6 @@+use tinytools_agent::dialect::ToolCallFormat;use super::*;-use crate::agent::prompts::{ToolCallFormat, UserIdentity};+use crate::agent::prompts::{UserIdentity};use std::collections::HashSet;fn ctx_with_identity(identity: Option<UserIdentity>) -> PromptContext<'static> {diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rsindex 99c573cda0..3e0d6da123 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs@@ -10,11 +10,11 @@//! delegate to any more. That prose lives here (not in the shared prompts//! module) so nobody has to branch on `agent_id` in a shared section impl.+use tinytools_agent::dialect::ToolCallFormat;use crate::agent::harness::host_definition::AgentDefinitionRegistry;use crate::agent::prompts::{render_datetime, render_identity, render_tools, render_workspace, ConnectedIntegration,- PromptContext, ToolCallFormat,-};+ PromptContext, };use crate::tools::orchestrator_tools::sanitise_slug;use crate::tools::toolpacks;use anyhow::Result;diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rsindex b0483cee67..54c423a834 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::prompts::ToolCallFormat;+use tinytools_agent::dialect::ToolCallFormat;use std::collections::HashSet;#[test]diff --git a/crates/openhuman-core/src/agent/registry/agents/presentation_agent/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/presentation_agent/prompt_tests.rsindex c74800261d..933f80046d 100644--- a/crates/openhuman-core/src/agent/registry/agents/presentation_agent/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/presentation_agent/prompt_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::prompts::ToolCallFormat;+use tinytools_agent::dialect::ToolCallFormat;use std::collections::HashSet;#[test]diff --git a/crates/openhuman-core/src/agent/registry/agents/task_manager_agent/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/task_manager_agent/prompt_tests.rsindex edb03fae3d..e19e75d20d 100644--- a/crates/openhuman-core/src/agent/registry/agents/task_manager_agent/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/task_manager_agent/prompt_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::prompts::ToolCallFormat;+use tinytools_agent::dialect::ToolCallFormat;use std::collections::HashSet;#[test]diff --git a/crates/openhuman-core/src/agent/registry/agents/video_agent/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/video_agent/prompt_tests.rsindex 1986af6c4e..1f6d79593d 100644--- a/crates/openhuman-core/src/agent/registry/agents/video_agent/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/video_agent/prompt_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::prompts::ToolCallFormat;+use tinytools_agent::dialect::ToolCallFormat;use std::collections::HashSet;#[test]diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rsindex 25c94db0a3..6730c02c39 100644--- a/crates/openhuman-core/src/agent/session_host/driver.rs+++ b/crates/openhuman-core/src/agent/session_host/driver.rs@@ -184,7 +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(- crate::agent::prompts::tool_call_format_from_dialect(+ (self.dispatcher.tool_call_format(),).harness_dispatcher(),diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rsindex 6198f7c38c..3260aac8be 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs@@ -266,7 +266,7 @@ impl OpenHumanTurnPrelude {}fn build_system_prompt_tiered(&self) -> Result<crate::agent::prompts::TieredPrompt> {- use crate::agent::prompts::{tool_call_format_from_dialect, PromptContext, PromptTool};+ use crate::agent::prompts::{PromptContext, PromptTool};let surface = self.tool_surface.lock()@@ -505,7 +505,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 = crate::agent::prompts::tool_call_format_from_dialect(+ run_context.tool_dialect = (self.tool_dispatcher.tool_call_format(),).harness_dispatcher();@@ -549,7 +549,7 @@ impl OpenHumanTurnPrelude {session_id: self.event_session_id.clone(),channel: self.event_channel.clone(),connected_integrations,- tool_call_format: crate::agent::prompts::tool_call_format_from_dialect(+ tool_call_format: (self.tool_dispatcher.tool_call_format(),),session_key: self.session_key.clone(),diff --git a/crates/openhuman-core/src/agent/session_host/turn/context.rs b/crates/openhuman-core/src/agent/session_host/turn/context.rsindex 7e89757609..827cb1b637 100644--- a/crates/openhuman-core/src/agent/session_host/turn/context.rs+++ b/crates/openhuman-core/src/agent/session_host/turn/context.rs@@ -1,7 +1,7 @@//! History, context, and system prompt management.use super::super::types::OpenHumanSessionHost;-use crate::agent::prompts::{tool_call_format_from_dialect, PromptContext, PromptTool};+use crate::agent::prompts::{PromptContext, PromptTool};use tinytools::render_tool_policy_boundary;use anyhow::Result;diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests.rsindex e10c190edb..2df4160b38 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs@@ -275,7 +275,7 @@ fn make_parent(session_id: "test-session".into(),channel: "test".into(),connected_integrations: vec![],- tool_call_format: crate::agent::prompts::ToolCallFormat::PFormat,+ tool_call_format: tinytools_agent::dialect::ToolCallFormat::PFormat,session_key: "0_test".into(),session_parent_prefix: None,on_progress: None,diff --git a/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs b/crates/openhuman-core/src/agent/subagent_host/tool_prep.rsindex f66ac74887..8010ea2212 100644--- a/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs+++ b/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs@@ -19,10 +19,10 @@ use tinytools::Tool;/// dialect selection here prevents OpenHuman prompt text from drifting from/// the parser that consumes the response.pub(crate) fn subagent_prompt_protocol(- parent_format: crate::agent::prompts::ToolCallFormat,+ parent_format: tinytools_agent::dialect::ToolCallFormat,tools: &[tinytools::ToolSpec],-) -> (crate::agent::prompts::ToolCallFormat, String) {- use crate::agent::prompts::ToolCallFormat;+) -> (tinytools_agent::dialect::ToolCallFormat, String) {+ use tinytools_agent::dialect::ToolCallFormat;use tinytools_agent::dialect::{CodeDialect, CodeStyle, NativeDialect, PFormatDialect, ToolDialect,};diff --git a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rsindex efba805c50..7f7ae1b21e 100644--- a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs@@ -44,7 +44,7 @@ fn unprefixed_delegate_name_overrides_are_treated_as_spawn_tools() {#[test]fn child_keeps_the_parents_protocol() {- use crate::agent::prompts::ToolCallFormat;+ use tinytools_agent::dialect::ToolCallFormat;for parent in [ToolCallFormat::Native,diff --git a/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs b/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rsindex 503485db70..4b5c57a441 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs@@ -70,8 +70,7 @@ use tinyinference_llm::message::Message;use crate::agent::prompts::{load_agents_md_layers, render_connected_identities, AgentsMdContent, ConnectedIntegration,- PromptContext, PromptTool, SystemPromptBuilder, ToolCallFormat,-};+ PromptContext, PromptTool, SystemPromptBuilder, };use crate::config::{Config, DEFAULT_MODEL};use tinyskills::Skill as Workflow;diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rsindex 492b0f7531..f88d0312df 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context_tests.rs@@ -261,7 +261,7 @@ fn stale_parent_snapshot() -> ParentExecutionContext {session_id: "parent-session".into(),channel: "test".into(),connected_integrations: Vec::new(),- tool_call_format: crate::agent::prompts::ToolCallFormat::Native,+ tool_call_format: tinytools_agent::dialect::ToolCallFormat::Native,session_key: "parent-key".into(),session_parent_prefix: None,on_progress: None,diff --git a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rsindex bc6e08297d..4e8fc3bb0e 100644--- a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs@@ -16,7 +16,7 @@use super::*;use crate::agent::harness::host_definition::AgentDefinitionRegistry;use crate::agent::harness::ParentExecutionContext;-use crate::agent::prompts::ToolCallFormat;+use tinytools_agent::dialect::ToolCallFormat;use crate::agent::tinyagents::tools::CanonicalSharedToolAdapter;use async_trait::async_trait;use serde_json::json;diff --git a/crates/openhuman-core/src/agent/tools/todo_tests.rs b/crates/openhuman-core/src/agent/tools/todo_tests.rsindex addda0cd70..7b3edba90c 100644--- a/crates/openhuman-core/src/agent/tools/todo_tests.rs+++ b/crates/openhuman-core/src/agent/tools/todo_tests.rs@@ -148,7 +148,7 @@ fn every_agent_binds_to_its_own_thread() {session_id: "orchestrator_thread-live".into(),channel: "test".into(),connected_integrations: Vec::new(),- tool_call_format: crate::agent::prompts::ToolCallFormat::Native,+ tool_call_format: tinytools_agent::dialect::ToolCallFormat::Native,session_key: "parent-key".into(),session_parent_prefix: None,on_progress: None,@@ -206,7 +206,7 @@ async fn a_legacy_session_keyed_list_is_migrated_forward_once() {session_id: "client-1|thread-legacy".into(),channel: "test".into(),connected_integrations: Vec::new(),- tool_call_format: crate::agent::prompts::ToolCallFormat::Native,+ tool_call_format: tinytools_agent::dialect::ToolCallFormat::Native,session_key: "parent-key".into(),session_parent_prefix: None,on_progress: None,diff --git a/crates/openhuman-core/src/agent/triage/evaluator/prompt.rs b/crates/openhuman-core/src/agent/triage/evaluator/prompt.rsindex 5606fa8bf4..d697c265f4 100644--- a/crates/openhuman-core/src/agent/triage/evaluator/prompt.rs+++ b/crates/openhuman-core/src/agent/triage/evaluator/prompt.rs@@ -1,6 +1,7 @@//! Prompt assembly for the classifier turn: the system prompt from the//! built-in agent definition and the rendered user message.+use tinytools_agent::dialect::ToolCallFormat;use crate::agent::harness::host_definition::AgentDefinition;use tinyagents_definition::PromptSource;@@ -18,8 +19,7 @@ pub(crate) fn extract_inline_prompt(def: &AgentDefinition) -> Option<String> {PromptSource::Dynamic(()) => {let build = def.extensions.prompt_builder?;use crate::agent::prompts::{- ConnectedIntegration, PromptContext, PromptTool, ToolCallFormat,- };+ ConnectedIntegration, PromptContext, PromptTool, };let empty_tools: Vec<PromptTool<'_>> = Vec::new();let empty_integrations: Vec<ConnectedIntegration> = Vec::new();let empty_visible: std::collections::HashSet<String> = std::collections::HashSet::new();diff --git a/crates/openhuman-core/src/flows/agents/flow_discovery/prompt_tests.rs b/crates/openhuman-core/src/flows/agents/flow_discovery/prompt_tests.rsindex 1334b66c60..4af2e98d6b 100644--- a/crates/openhuman-core/src/flows/agents/flow_discovery/prompt_tests.rs+++ b/crates/openhuman-core/src/flows/agents/flow_discovery/prompt_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::prompts::ToolCallFormat;+use tinytools_agent::dialect::ToolCallFormat;use std::collections::HashSet;fn ctx() -> PromptContext<'static> {diff --git a/tests/composio_list_tools_stack_overflow_regression.rs b/tests/composio_list_tools_stack_overflow_regression.rsindex 861ee89f84..13898338fa 100644--- a/tests/composio_list_tools_stack_overflow_regression.rs+++ b/tests/composio_list_tools_stack_overflow_regression.rs@@ -110,7 +110,7 @@use async_trait::async_trait;use openhuman_core::agent::harness::host_definition::AgentDefinitionRegistry;use openhuman_core::agent::harness::{with_parent_context, ParentExecutionContext};-use openhuman_core::agent::prompts::ToolCallFormat;+use tinytools_agent::dialect::ToolCallFormat;use openhuman_core::agent::subagent_host::{run_subagent, SubagentRunOptions};use openhuman_core::config::AgentConfig;use parking_lot::Mutex;diff --git a/tests/in_process/calendar_grounding_e2e.rs b/tests/in_process/calendar_grounding_e2e.rsindex aa5bc0f60d..5f984c58c1 100644--- a/tests/in_process/calendar_grounding_e2e.rs+++ b/tests/in_process/calendar_grounding_e2e.rs@@ -188,7 +188,7 @@ async fn test_subagent_has_current_date_context() -> Result<()> {session_id: "test-session".into(),channel: "test".into(),connected_integrations: vec![],- tool_call_format: openhuman_core::agent::prompts::ToolCallFormat::PFormat,+ tool_call_format: tinytools_agent::dialect::ToolCallFormat::PFormat,session_key: "0_test".into(),session_parent_prefix: None,on_progress: None,