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
feat: add Python and TypeScript tool call format support to subagent prompts
Steven Enamakela92fd39b7e33
diff --git a/crates/openhuman-core/src/agent/prompts/render_helpers/subagent.rs b/crates/openhuman-core/src/agent/prompts/render_helpers/subagent.rsindex 8cb0f4382b..d24faadf3b 100644--- a/crates/openhuman-core/src/agent/prompts/render_helpers/subagent.rs+++ b/crates/openhuman-core/src/agent/prompts/render_helpers/subagent.rs@@ -217,6 +217,24 @@ pub fn render_subagent_system_prompt_with_format(tool.parameters_schema());}+ ToolCallFormat::Python | ToolCallFormat::TypeScript => {+ let Some(style) = tool_call_format.code_style() else {+ return;+ };+ let spec = tinytools::ToolSpec {+ name: tool.name().to_string(),+ description: tool.description().to_string(),+ parameters: tool.parameters_schema(),+ };+ // Reuse the canonical renderer, minus its heading — the+ // heading was written once above for the whole list.+ let rendered = tinytools_agent::render::render_code_catalogue(&[spec], style);+ out.push_str(+ rendered+ .strip_prefix(tinytools_agent::render::CATALOGUE_HEADING)+ .unwrap_or(&rendered),+ );+ }ToolCallFormat::Native => {// Unreachable — outer guard skips Native entirely.}@@ -268,6 +286,16 @@ pub fn render_subagent_system_prompt_with_format(user-visible response.\n\n",);}+ ToolCallFormat::Python | ToolCallFormat::TypeScript => {+ if let Some(style) = tool_call_format.code_style() {+ out.push_str(&tinytools_agent::dialect::CodeDialect::instructions(style));+ }+ out.push_str(+ "Use the provided tools to accomplish the task. Reply with a concise, dense \+ final answer when you have one — the parent agent will weave it back into the \+ user-visible response.\n\n",+ );+ }ToolCallFormat::Native => {out.push_str("Use the provided tools via the model's native tool-calling output. \