Skip to content

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

chore: files changed crates/openhuman-core/src/agent/prompts/types.rs,crates/openhuman-core/src/conf

Steven Enamakelb9a3c4401f77
diff --git a/crates/openhuman-core/src/agent/prompts/types.rs b/crates/openhuman-core/src/agent/prompts/types.rs
index 87915e42ca..b8916bb504 100644
--- a/crates/openhuman-core/src/agent/prompts/types.rs
+++ b/crates/openhuman-core/src/agent/prompts/types.rs
@@ -340,13 +340,13 @@ pub fn swap_deferred_for_discovery_bridge<'a>(
pub enum ToolCallFormat {
/// Compact positional legacy dialect.
PFormat,
- /// Legacy JSON-in-tag rendering with full schemas.
+ /// JSON-in-tag rendering with full schemas. The default.
+ #[default]
Json,
/// Provider supplies structured tool calls — catalogue is
/// informational. Renders in the same JSON-schema form as `Json`.
Native,
/// Python `def` signatures; the model calls `name(arg="value")`.
- #[default]
Python,
/// TypeScript `function` signatures; the model calls `name({arg: "value"})`.
TypeScript,
diff --git a/crates/openhuman-core/src/config/schema/agent.rs b/crates/openhuman-core/src/config/schema/agent.rs
index 0fef7db9b9..0cd59d6821 100644
--- a/crates/openhuman-core/src/config/schema/agent.rs
+++ b/crates/openhuman-core/src/config/schema/agent.rs
@@ -255,12 +255,11 @@ pub struct AgentConfig {
#[serde(default = "default_max_parallel_tools")]
pub max_parallel_tools: usize,
/// How the agent formats tool calls to its provider.
- /// - `"python"` (default): code-style calls against Python signatures in
- /// the prompt (`def read_file(path: str, limit: int = None) -> str`,
- /// called as `read_file(path="x")`). The cheapest catalogue on the wire
- /// and a syntax every code-trained model already writes.
- /// - `"auto"`: native structured tool-calling when the provider supports
- /// it, otherwise JSON-in-tag (`<tool_call>{…}</tool_call>`).
+ /// - `"auto"` (default): native structured tool-calling when the provider
+ /// supports it, otherwise JSON-in-tag (`<tool_call>{…}</tool_call>`).
+ /// - `"python"`: code-style calls against Python signatures in the prompt
+ /// (`def read_file(path: str, limit: int = None) -> str`, called as
+ /// `read_file(path="x")`). Opt-in; mis-parses on some models.
/// - `"native"`: force provider-native structured tool calls.
/// - `"xml"`: force JSON-in-tag.
/// - `"pformat"`: force compact positional P-Format (`tool[a|b]`); it
@@ -484,7 +483,7 @@ fn default_max_parallel_tools() -> usize {
}
fn default_agent_tool_dispatcher() -> String {
- "python".into()
+ "auto".into()
}
fn default_max_memory_context_chars() -> usize {