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
fix: wrap tool name and description in `Cow::Borrowed` to match expected type
Steven Enamakelc5657718a651
diff --git a/crates/openhuman-core/src/agent/debug/mod.rs b/crates/openhuman-core/src/agent/debug/mod.rsindex 9e1f681c6b..617bae1686 100644--- a/crates/openhuman-core/src/agent/debug/mod.rs+++ b/crates/openhuman-core/src/agent/debug/mod.rs@@ -449,8 +449,8 @@ async fn render_integrations_agent(config: &Config, toolkit: &str) -> Result<Dumlet prompt_tools: Vec<PromptTool<'_>> = rendered_tools.iter().map(|t| PromptTool {- name: t.name(),- description: t.description(),+ name: std::borrow::Cow::Borrowed(t.name()),+ description: std::borrow::Cow::Borrowed(t.description()),parameters_schema: Some(t.parameters_schema().to_string()),}).collect();diff --git a/crates/openhuman-core/src/agent/prompts/sections.rs b/crates/openhuman-core/src/agent/prompts/sections.rsindex 9cdf145ec3..d9e4d18738 100644--- a/crates/openhuman-core/src/agent/prompts/sections.rs+++ b/crates/openhuman-core/src/agent/prompts/sections.rs@@ -381,7 +381,7 @@ impl PromptSection for ToolsSection {let visible: Vec<ToolSpec> = ctx.tools.iter()- .filter(|tool| !has_filter || ctx.visible_tool_names.contains(tool.name))+ .filter(|tool| !has_filter || ctx.visible_tool_names.contains(tool.name.as_ref())).map(|tool| {let parameters = match tool.parameters_schema.as_deref() {Some(schema) => match serde_json::from_str(schema) {diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rsindex 9c08bdda81..2e3099396a 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs@@ -1370,14 +1370,14 @@ async fn run_typed_mode(.map(|&i| {let t = parent.all_tools[i].as_ref();PromptTool {- name: t.name(),- description: t.description(),+ name: std::borrow::Cow::Borrowed(t.name()),+ description: std::borrow::Cow::Borrowed(t.description()),parameters_schema: Some(t.parameters_schema().to_string()),}}).chain(dynamic_tools.iter().map(|t| PromptTool {- name: t.name(),- description: t.description(),+ name: std::borrow::Cow::Borrowed(t.name()),+ description: std::borrow::Cow::Borrowed(t.description()),parameters_schema: Some(t.parameters_schema().to_string()),})).collect();