Skip to content

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

refactor(tools): use static_schema from tinyagents_harness_tools

Steven Enamakel78027f81267b
diff --git a/crates/openhuman-core/src/cron/tools/add.rs b/crates/openhuman-core/src/cron/tools/add.rs
index 29d16ae965..f198dd548e 100644
--- a/crates/openhuman-core/src/cron/tools/add.rs
+++ b/crates/openhuman-core/src/cron/tools/add.rs
@@ -2,7 +2,7 @@ use crate::config::Config;
use crate::cron::job_builder::{create_agent_job, AgentJobInput};
use crate::cron::origin::{current_job_origin, current_turn_may_skip_approval};
use crate::security::SecurityPolicy;
-use crate::tools::schema_cache::static_schema;
+use tinyagents_harness_tools::static_schema;
use async_trait::async_trait;
use serde_json::json;
use std::sync::Arc;
diff --git a/crates/openhuman-core/src/flows/memory_tools.rs b/crates/openhuman-core/src/flows/memory_tools.rs
index 2b62cbcc34..e75d4fe575 100644
--- a/crates/openhuman-core/src/flows/memory_tools.rs
+++ b/crates/openhuman-core/src/flows/memory_tools.rs
@@ -22,7 +22,7 @@
//! [`FlowMemoryRecallTool`] only ever reads with a flow tag filter
//! (`flow:<id>` or `flows`), so it never reaches the user's own memory.
-use crate::tools::schema_cache::static_schema;
+use tinyagents_harness_tools::static_schema;
use std::sync::Arc;
use async_trait::async_trait;
diff --git a/crates/openhuman-core/src/integrations/composio/tools/list_tools.rs b/crates/openhuman-core/src/integrations/composio/tools/list_tools.rs
index 0cf981c4d0..14b745e611 100644
--- a/crates/openhuman-core/src/integrations/composio/tools/list_tools.rs
+++ b/crates/openhuman-core/src/integrations/composio/tools/list_tools.rs
@@ -1,6 +1,6 @@
//! The `composio_list_tools` agent tool.
-use crate::tools::schema_cache::static_schema;
+use tinyagents_harness_tools::static_schema;
use std::collections::HashSet;
use std::sync::Arc;
diff --git a/crates/openhuman-core/src/mcp/server/tools/specs.rs b/crates/openhuman-core/src/mcp/server/tools/specs.rs
index 89aebfec27..45650cdcc4 100644
--- a/crates/openhuman-core/src/mcp/server/tools/specs.rs
+++ b/crates/openhuman-core/src/mcp/server/tools/specs.rs
@@ -1,4 +1,4 @@
-use crate::tools::schema_cache::static_schema;
+use tinyagents_harness_tools::static_schema;
use serde_json::{json, Value};
use tinymcp_bus::ServerToolSpec;
diff --git a/crates/openhuman-core/src/memory/tools.rs b/crates/openhuman-core/src/memory/tools.rs
index f524cf431d..51d1695abc 100644
--- a/crates/openhuman-core/src/memory/tools.rs
+++ b/crates/openhuman-core/src/memory/tools.rs
@@ -258,7 +258,7 @@ impl Tool for MemoryTool {
}
fn parameters_schema(&self) -> Value {
- crate::tools::schema_cache::static_schema!(include_str!("parameters/memory.json"))
+ tinyagents_harness_tools::static_schema!(include_str!("parameters/memory.json"))
}
fn permission_level(&self) -> PermissionLevel {
diff --git a/crates/openhuman-core/src/tools/impl/system/proxy_config.rs b/crates/openhuman-core/src/tools/impl/system/proxy_config.rs
index beebb28af7..9555474a6e 100644
--- a/crates/openhuman-core/src/tools/impl/system/proxy_config.rs
+++ b/crates/openhuman-core/src/tools/impl/system/proxy_config.rs
@@ -2,7 +2,7 @@ use crate::config::{
runtime_proxy_config, set_runtime_proxy_config, Config, ProxyConfig, ProxyScope,
};
use crate::security::SecurityPolicy;
-use crate::tools::schema_cache::static_schema;
+use tinyagents_harness_tools::static_schema;
use crate::util::MaybeSet;
use async_trait::async_trait;
use serde_json::{json, Value};
diff --git a/crates/openhuman-core/src/tools/impl/system/schedule.rs b/crates/openhuman-core/src/tools/impl/system/schedule.rs
index 8ba27c032e..a769062031 100644
--- a/crates/openhuman-core/src/tools/impl/system/schedule.rs
+++ b/crates/openhuman-core/src/tools/impl/system/schedule.rs
@@ -2,7 +2,7 @@ use crate::config::Config;
use crate::cron::job_builder::{create_agent_job, AgentJobInput};
use crate::cron::origin::{current_job_origin, current_turn_may_skip_approval};
use crate::security::SecurityPolicy;
-use crate::tools::schema_cache::static_schema;
+use tinyagents_harness_tools::static_schema;
use anyhow::Result;
use async_trait::async_trait;
use chrono::{DateTime, Utc};
diff --git a/crates/openhuman-core/src/tools/mod.rs b/crates/openhuman-core/src/tools/mod.rs
index c3b45a3bd3..43b535fd76 100644
--- a/crates/openhuman-core/src/tools/mod.rs
+++ b/crates/openhuman-core/src/tools/mod.rs
@@ -6,7 +6,6 @@ pub(crate) mod per_call;
pub(crate) mod policy_session;
pub mod registry;
pub mod rules;
-pub(crate) mod schema_cache;
mod schemas;
pub mod sources;
pub mod timeout;