Skip to content

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

style: apply rustfmt import ordering and line wrapping

Steven Enamakela6c4558f6edf
diff --git a/crates/openhuman-core/src/agent/context/channels_prompt.rs b/crates/openhuman-core/src/agent/context/channels_prompt.rs
index c7890bd0a4..e8f853a4b7 100644
--- a/crates/openhuman-core/src/agent/context/channels_prompt.rs
+++ b/crates/openhuman-core/src/agent/context/channels_prompt.rs
@@ -141,7 +141,9 @@ pub fn build_system_prompt_with_identity(
// ── 1. Tooling ──────────────────────────────────────────────
if !tools.is_empty() {
- prompt.push_str(&tinyagents_harness::catalog::render_description_catalogue(tools));
+ prompt.push_str(&tinyagents_harness::catalog::render_description_catalogue(
+ tools,
+ ));
}
// ── 1b. Action instruction (avoid meta-summary) ───────────────
diff --git a/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs b/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs
index e8510c86f0..9245e4578f 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,6 @@ 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 tinytools_agent::dialect::ToolCallFormat;
use crate::config::{AgentConfig, Config};
use tinyagents_orchestration::teams::{SessionTeamLedger, TeamService};
use tinyagents_session::run_ledger::{
@@ -25,6 +24,7 @@ use tinyagents_session::run_ledger::{
};
use tinyinference_llm::model::{ChatModel, ModelRequest, ModelResponse};
use tinytools::Tool;
+use tinytools_agent::dialect::ToolCallFormat;
// ── Mocks (mirror workflow_runs::engine_tests) ──────────────────────────────
diff --git a/crates/openhuman-core/src/agent/orchestration/ops_tests.rs b/crates/openhuman-core/src/agent/orchestration/ops_tests.rs
index bf555393ec..8090b92a09 100644
--- a/crates/openhuman-core/src/agent/orchestration/ops_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/ops_tests.rs
@@ -1,7 +1,6 @@
use super::*;
use crate::agent::harness::fork_context::{with_parent_context, ParentExecutionContext};
use crate::agent::harness::host_definition::AgentDefinitionRegistry;
-use tinytools_agent::dialect::ToolCallFormat;
use crate::config::AgentConfig;
use async_trait::async_trait;
use parking_lot::Mutex;
@@ -13,6 +12,7 @@ use std::sync::{
use tinyagents_tasks::OrchestrationTaskStatus;
use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tinytools::Tool;
+use tinytools_agent::dialect::ToolCallFormat;
use tokio::time::Duration;
fn parent_context(model: Arc<dyn ChatModel<()>>) -> ParentExecutionContext {
diff --git a/crates/openhuman-core/src/agent/orchestration/spawn_parallel.rs b/crates/openhuman-core/src/agent/orchestration/spawn_parallel.rs
index 97aa694ad8..6860762134 100644
--- a/crates/openhuman-core/src/agent/orchestration/spawn_parallel.rs
+++ b/crates/openhuman-core/src/agent/orchestration/spawn_parallel.rs
@@ -38,8 +38,7 @@ pub(crate) use types::ParallelAgentTask;
#[cfg(test)]
pub(crate) use staging::{
- prepare_spawn_parallel_tasks_from_defs, ParallelTaskRejectionKind,
- SpawnParallelTaskPreflight,
+ prepare_spawn_parallel_tasks_from_defs, ParallelTaskRejectionKind, SpawnParallelTaskPreflight,
};
#[cfg(test)]
pub(crate) use types::{ParallelAgentLineage, ParallelAgentResult, ParallelAgentStatus};
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.rs
index 935ba27386..5ddf158380 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,12 +1,12 @@
use super::*;
use crate::agent::harness::fork_context::ParentExecutionContext;
-use tinytools_agent::dialect::ToolCallFormat;
use crate::config::AgentConfig;
use std::collections::HashSet;
use std::path::Path;
use std::sync::Arc;
use tinyagents_harness::context::RunConfig;
use tinyagents_harness::tool::ToolDispatch;
+use tinytools_agent::dialect::ToolCallFormat;
#[tokio::test]
async fn missing_session_id_is_rejected() {
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.rs
index 0cfce3f0e2..a4c01eacd0 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,12 +1,12 @@
use super::*;
use crate::agent::harness::fork_context::{with_parent_context, ParentExecutionContext};
use crate::agent::harness::host_definition::AgentDefinitionRegistry;
-use tinytools_agent::dialect::ToolCallFormat;
use crate::config::AgentConfig;
use std::collections::HashSet;
use std::path::Path;
use std::sync::Arc;
use tinytools::{ToolCallOptions, ToolRunContext};
+use tinytools_agent::dialect::ToolCallFormat;
struct ThreadContext(&'static str);
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.rs
index b3c424ca28..354e11155e 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
@@ -5,8 +5,6 @@ use crate::agent::harness::host_definition::AgentDefinitionRegistry;
use crate::agent::orchestration::spawn_parallel::{
prepare_spawn_parallel_tasks_from_defs, ParallelTaskRejectionKind, SpawnParallelTaskPreflight,
};
-use tinyagents_orchestration::parallel::WorkerDispatchMode;
-use tinytools_agent::dialect::ToolCallFormat;
use crate::agent::tinyagents::host::OpenHumanRunContext;
use crate::agent::OpenHumanSessionHost;
use crate::config::AgentConfig;
@@ -22,12 +20,14 @@ use tinyagents_definition::{
AgentTier, DefinitionSource, ModelSpec, PromptSource, SandboxMode, ToolScope,
};
use tinyagents_harness::tool::ToolDispatch;
+use tinyagents_orchestration::parallel::WorkerDispatchMode;
use tinyinference_llm::message::{AssistantMessage, Message};
use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tinyinference_llm::tool::ToolCall;
use tinytools::ToolTimeout;
use tinytools::{PermissionLevel, Tool, ToolResult};
use tinytools_agent::dialect::NativeDialect;
+use tinytools_agent::dialect::ToolCallFormat;
use tinytools_agent::dialect::TranscriptEntry;
use tokio::time::{sleep, timeout, Duration};
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.rs
index 918619c889..027a5bc5ce 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,8 +1,7 @@
-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};
+use crate::agent::prompts::ConnectedIntegration;
use crate::threads::store as conversations;
use async_trait::async_trait;
use parking_lot::Mutex;
@@ -14,6 +13,7 @@ use tinyagents_session::transcript::TranscriptMessage;
use tinyinference_llm::message::Message;
use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tinytools::Tool;
+use tinytools_agent::dialect::ToolCallFormat;
const SPAWN_SUBAGENT_CANARY: &str = "tool-e2e-spawn-subagent-canary";
const ARCHETYPE_DELEGATION_CANARY: &str = "tool-e2e-archetype-delegation-canary";
diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests.rs
index dd750e41ed..8f36616c2f 100644
--- a/crates/openhuman-core/src/agent/prompts/mod_tests.rs
+++ b/crates/openhuman-core/src/agent/prompts/mod_tests.rs
@@ -1,10 +1,10 @@
-use tinytools_agent::dialect::ToolCallFormat;
use super::*;
use async_trait::async_trait;
use std::collections::HashSet;
use std::path::Path;
use std::sync::LazyLock;
use tinytools::Tool;
+use tinytools_agent::dialect::ToolCallFormat;
static NO_FILTER: LazyLock<HashSet<String>> = LazyLock::new(HashSet::new);
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.rs
index 54dad199db..86aa9fdad2 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,5 +1,5 @@
-use tinytools_agent::dialect::ToolCallFormat;
use super::*;
+use tinytools_agent::dialect::ToolCallFormat;
#[test]
fn agents_md_section_truncates_oversized_layer_at_cap() {
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.rs
index c971a92789..e43f43991f 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,5 +1,5 @@
-use tinytools_agent::dialect::ToolCallFormat;
use super::*;
+use tinytools_agent::dialect::ToolCallFormat;
#[test]
fn prompt_builder_assembles_sections() {
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.rs
index af5c2bbfb2..b177d592e8 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,5 +1,5 @@
-use tinytools_agent::dialect::ToolCallFormat;
use super::*;
+use tinytools_agent::dialect::ToolCallFormat;
#[test]
fn rendered_subagent_system_prompt_is_byte_stable_across_repeat_calls() {
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.rs
index bebc5e037f..d2a68cd677 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,11 +2,11 @@
//! [`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;
use std::sync::OnceLock;
+use tinytools_agent::dialect::ToolCallFormat;
// ─────────────────────────────────────────────────────────────────────────────
// Section render helpers (functional wrappers over section structs)
diff --git a/crates/openhuman-core/src/agent/prompts/render_helpers/subagent.rs b/crates/openhuman-core/src/agent/prompts/render_helpers/subagent.rs
index 145c515593..dd4a731b69 100644
--- a/crates/openhuman-core/src/agent/prompts/render_helpers/subagent.rs
+++ b/crates/openhuman-core/src/agent/prompts/render_helpers/subagent.rs
@@ -4,13 +4,13 @@
//! [`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::*;
use super::workspace_files::{inject_workspace_file, write_agents_md_blocks};
use std::fmt::Write;
use std::path::Path;
+use tinytools_agent::dialect::ToolCallFormat;
use tinytools_agent::dialect::{CodeDialect, NativeDialect, PFormatDialect, ToolDialect};
// ─────────────────────────────────────────────────────────────────────────────
diff --git a/crates/openhuman-core/src/agent/prompts/sections.rs b/crates/openhuman-core/src/agent/prompts/sections.rs
index 6c9929dcc5..951c622405 100644
--- a/crates/openhuman-core/src/agent/prompts/sections.rs
+++ b/crates/openhuman-core/src/agent/prompts/sections.rs
@@ -5,13 +5,13 @@
//! [`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;
use std::fmt::Write;
use tinytools::ToolSpec;
use tinytools_agent::dialect::render_pformat_catalogue;
+use tinytools_agent::dialect::ToolCallFormat;
// ─────────────────────────────────────────────────────────────────────────────
// Special sections (archetype, dynamic)
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.rs
index 37a4a0da25..0d19e1afb8 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,13 +5,13 @@
//! [`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};
+use crate::agent::prompts::PromptContext;
use std::collections::{BTreeMap, BTreeSet, HashSet};
use std::sync::Arc;
use tinyagents_definition::{PromptSource, SubagentEntry, ToolScope};
+use tinytools_agent::dialect::ToolCallFormat;
/// Render `def`'s prompt through its own `PromptSource`, with no tools,
/// connections or user: what is left is what the agent was written to say.
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.rs
index f9258a7efe..c3578ddf91 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,6 +1,6 @@
use super::*;
-use tinytools_agent::dialect::ToolCallFormat;
use std::collections::HashSet;
+use tinytools_agent::dialect::ToolCallFormat;
#[test]
fn build_returns_nonempty_body() {
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.rs
index cfbdc34bc0..99955e988e 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,5 +1,5 @@
-use tinytools_agent::dialect::ToolCallFormat;
use super::*;
+use tinytools_agent::dialect::ToolCallFormat;
#[test]
fn all_builtins_parse() {
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.rs
index 623c3cc9d7..e73aa8c786 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,7 +1,7 @@
-use tinytools_agent::dialect::ToolCallFormat;
use super::*;
-use crate::agent::prompts::{UserIdentity};
+use crate::agent::prompts::UserIdentity;
use std::collections::HashSet;
+use tinytools_agent::dialect::ToolCallFormat;
fn ctx_with_identity(identity: Option<UserIdentity>) -> PromptContext<'static> {
// SAFETY note: the empty visible-set is leaked once via a
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs
index 3e0d6da123..6e8cef063b 100644
--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs
@@ -10,17 +10,18 @@
//! 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, };
+ PromptContext,
+};
use crate::tools::orchestrator_tools::sanitise_slug;
use crate::tools::toolpacks;
use anyhow::Result;
use std::fmt::Write;
use tinyagents_definition::SubagentEntry;
use tinyskills::Skill as Workflow;
+use tinytools_agent::dialect::ToolCallFormat;
const ARCHETYPE: &str = include_str!("prompt.md");
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.rs
index 54c423a834..6aa89464eb 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,6 +1,6 @@
use super::*;
-use tinytools_agent::dialect::ToolCallFormat;
use std::collections::HashSet;
+use tinytools_agent::dialect::ToolCallFormat;
#[test]
fn render_installed_skills_lists_skills_and_names_the_hand_offs_it_is_given() {
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.rs
index 933f80046d..3c79b481c8 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,6 +1,6 @@
use super::*;
-use tinytools_agent::dialect::ToolCallFormat;
use std::collections::HashSet;
+use tinytools_agent::dialect::ToolCallFormat;
#[test]
fn build_returns_grounding_contract() {
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.rs
index e19e75d20d..a405b0e22e 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,6 +1,6 @@
use super::*;
-use tinytools_agent::dialect::ToolCallFormat;
use std::collections::HashSet;
+use tinytools_agent::dialect::ToolCallFormat;
#[test]
fn build_returns_task_manager_contract() {
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.rs
index 1f6d79593d..8ea35fc18d 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,6 +1,6 @@
use super::*;
-use tinytools_agent::dialect::ToolCallFormat;
use std::collections::HashSet;
+use tinytools_agent::dialect::ToolCallFormat;
#[test]
fn build_returns_nonempty_body() {
diff --git a/crates/openhuman-core/src/agent/session_host/builder/factory.rs b/crates/openhuman-core/src/agent/session_host/builder/factory.rs
index 092df7e297..77703f7e84 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/factory.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/factory.rs
@@ -97,8 +97,12 @@ impl OpenHumanSessionHost {
ToolScope::Wildcard => "wildcard".to_string(),
})
.unwrap_or_else(|| "legacy".to_string()),
- target_def.as_ref().is_some_and(|d| d.extensions.omit_identity),
- target_def.as_ref().is_some_and(|d| d.extensions.omit_memory_context),
+ target_def
+ .as_ref()
+ .is_some_and(|d| d.extensions.omit_identity),
+ target_def
+ .as_ref()
+ .is_some_and(|d| d.extensions.omit_memory_context),
target_def
.as_ref()
.map(|d| d.temperature)
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
index da37d9597a..38e47fe427 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -503,7 +503,9 @@ 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 = tinyagents_harness::dialect::dispatcher_for_format(self.tool_dispatcher.tool_call_format());
+ 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/tinyagents/host/context_composer.rs b/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs
index e349b5dc94..0e4ecd5667 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs
@@ -60,9 +60,9 @@
//! 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;
+use tinytools_agent::dialect::ToolCallFormat;
use async_trait::async_trait;
use tinyagents_harness::error::{Result as TinyAgentsResult, TinyAgentsError};
@@ -71,7 +71,8 @@ use tinyinference_llm::message::Message;
use crate::agent::prompts::{
load_agents_md_layers, render_connected_identities, AgentsMdContent, ConnectedIntegration,
- PromptContext, PromptTool, SystemPromptBuilder, };
+ PromptContext, PromptTool, SystemPromptBuilder,
+};
use crate::config::{Config, DEFAULT_MODEL};
use tinyskills::Skill as Workflow;
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.rs
index 4e8fc3bb0e..1f48c73bb3 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,6 @@
use super::*;
use crate::agent::harness::host_definition::AgentDefinitionRegistry;
use crate::agent::harness::ParentExecutionContext;
-use tinytools_agent::dialect::ToolCallFormat;
use crate::agent::tinyagents::tools::CanonicalSharedToolAdapter;
use async_trait::async_trait;
use serde_json::json;
@@ -28,6 +27,7 @@ use tinyagents_harness::CallId;
use tinyinference_llm::message::Message;
use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tinytools::{Tool, ToolCallOptions, ToolResult};
+use tinytools_agent::dialect::ToolCallFormat;
/// A stub archetype-delegate tool: only its name has to match `image_agent`'s
/// `delegate_name` ("create_image", set in
diff --git a/crates/openhuman-core/src/agent/triage/evaluator/prompt.rs b/crates/openhuman-core/src/agent/triage/evaluator/prompt.rs
index d697c265f4..db2ee9f804 100644
--- a/crates/openhuman-core/src/agent/triage/evaluator/prompt.rs
+++ b/crates/openhuman-core/src/agent/triage/evaluator/prompt.rs
@@ -1,9 +1,9 @@
//! 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;
+use tinytools_agent::dialect::ToolCallFormat;
use super::super::decision::ParseError;
use super::super::envelope::TriggerEnvelope;
@@ -18,8 +18,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, };
+ 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/flows/agents/flow_discovery/prompt_tests.rs b/crates/openhuman-core/src/flows/agents/flow_discovery/prompt_tests.rs
index 4af2e98d6b..ced8ef588d 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,6 +1,6 @@
use super::*;
-use tinytools_agent::dialect::ToolCallFormat;
use std::collections::HashSet;
+use tinytools_agent::dialect::ToolCallFormat;
fn ctx() -> PromptContext<'static> {
static VISIBLE: std::sync::OnceLock<HashSet<String>> = std::sync::OnceLock::new();
diff --git a/crates/openhuman-embed/src/agent/layout.rs b/crates/openhuman-embed/src/agent/layout.rs
index cdb1f9b4b0..09262dc0cb 100644
--- a/crates/openhuman-embed/src/agent/layout.rs
+++ b/crates/openhuman-embed/src/agent/layout.rs
@@ -43,11 +43,8 @@ impl AgentLayout {
Self {
home: workspace_dir.join("agents").join(id),
skills: workspace_dir.join("agents").join(id).join("skills"),
- transcripts: tinyagents_session::transcript::agent_transcript_root(
- workspace_dir,
- id,
- )
- .join("session_raw"),
+ transcripts: tinyagents_session::transcript::agent_transcript_root(workspace_dir, id)
+ .join("session_raw"),
action_dir,
}
}
diff --git a/tests/composio_list_tools_stack_overflow_regression.rs b/tests/composio_list_tools_stack_overflow_regression.rs
index 13898338fa..91e223ae42 100644
--- a/tests/composio_list_tools_stack_overflow_regression.rs
+++ b/tests/composio_list_tools_stack_overflow_regression.rs
@@ -110,7 +110,6 @@
use async_trait::async_trait;
use openhuman_core::agent::harness::host_definition::AgentDefinitionRegistry;
use openhuman_core::agent::harness::{with_parent_context, ParentExecutionContext};
-use tinytools_agent::dialect::ToolCallFormat;
use openhuman_core::agent::subagent_host::{run_subagent, SubagentRunOptions};
use openhuman_core::config::AgentConfig;
use parking_lot::Mutex;
@@ -121,6 +120,7 @@ use tinyagents_definition::ModelSpec;
use tinyinference_llm::message::AssistantMessage;
use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tinyinference_llm::tool::ToolCall;
+use tinytools_agent::dialect::ToolCallFormat;
/// Worker stack for this guard: 3 MiB, deliberately far below the production
/// `AGENT_WORKER_STACK_BYTES` (16 MiB, which stays the real budget).