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(provider): correct type annotation for inference provider
Steven Enamakelb87037801b8f
diff --git a/src/openhuman/inference/provider/types.rs b/src/openhuman/inference/provider/types.rsindex 1545e3c5be..2b80da683c 100644--- a/src/openhuman/inference/provider/types.rs+++ b/src/openhuman/inference/provider/types.rs@@ -148,35 +148,3 @@ pub enum StreamError {Io(#[from] std::io::Error),}-/// Build tool instructions text for prompt-guided tool calling.-///-/// Generates a formatted text block describing available tools and how to-/// invoke them using XML-style tags. This is used as a fallback when the-/// provider doesn't support native tool calling.-pub fn build_tool_instructions_text(tools: &[ToolSpec]) -> String {- let mut instructions = String::new();-- instructions.push_str("## Tool Use Protocol\n\n");- instructions.push_str("To use a tool, wrap a JSON object in <tool_call></tool_call> tags:\n\n");- instructions.push_str("<tool_call>\n");- instructions.push_str(r#"{"name": "tool_name", "arguments": {"param": "value"}}"#);- instructions.push_str("\n</tool_call>\n\n");- instructions.push_str("You may use multiple tool calls in a single response. ");- instructions.push_str("After tool execution, results appear in <tool_result> tags. ");- instructions- .push_str("Continue reasoning with the results until you can give a final answer.\n\n");- instructions.push_str("### Available Tools\n\n");-- for tool in tools {- writeln!(&mut instructions, "**{}**: {}", tool.name, tool.description)- .expect("writing to String cannot fail");-- let parameters =- serde_json::to_string(&tool.parameters).unwrap_or_else(|_| "{}".to_string());- writeln!(&mut instructions, "Parameters: `{parameters}`")- .expect("writing to String cannot fail");- instructions.push('\n');- }-- instructions-}