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/tinyagents/config_tests.rs,gitbooks/developing/

Steven Enamakel0b7458bf178d
diff --git a/crates/openhuman-core/src/agent/tinyagents/config_tests.rs b/crates/openhuman-core/src/agent/tinyagents/config_tests.rs
index ed41a94930..ac2185d350 100644
--- a/crates/openhuman-core/src/agent/tinyagents/config_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/config_tests.rs
@@ -56,16 +56,10 @@ fn default_config_maps_to_the_crate_defaults() {
// unconfigured crate config.
let s = session_config_from(&base());
assert_eq!(s.turn, TurnConfig::default());
- // OpenHuman's own default dialect is `python` (the crate's is `Auto`);
- // everything else about the tool config must still be the crate default.
- assert_eq!(s.tools.dispatcher, ToolDispatcher::Python);
- assert_eq!(
- ToolConfig {
- dispatcher: ToolDispatcher::Auto,
- ..s.tools.clone()
- },
- ToolConfig::default()
- );
+ // The default dialect is `auto` (native, else JSON-in-tag), never a code
+ // dialect: python-style calls mis-parse on too many models.
+ assert_eq!(s.tools.dispatcher, ToolDispatcher::Auto);
+ assert_eq!(s.tools, ToolConfig::default());
assert_eq!(s.memory.max_memory_context_chars, 2000);
}
diff --git a/gitbooks/developing/architecture/agent-harness.md b/gitbooks/developing/architecture/agent-harness.md
index ce81132019..7f077b1b88 100644
--- a/gitbooks/developing/architecture/agent-harness.md
+++ b/gitbooks/developing/architecture/agent-harness.md
@@ -267,7 +267,7 @@ compatibility export.
### Tool dispatch and tool-call dialects
-`agent.tool_dispatcher` (overridable for one launch with `OPENHUMAN_TOOL_DISPATCHER`) picks how tools are spoken to the model. `python` (the default) renders the catalogue as Python function signatures and reads code-style calls back. `auto` uses **native tool calling**, structured tool specs through the `ChatModel` adapter and structured calls back, whenever the provider profile supports it, and falls back to JSON-in-tag for prompt-guided providers such as local Ollama. The session composes its prompt for the chosen dialect and pins the same dialect on the turn harness, so a text dialect keeps its schemas off the wire and the harness recovers calls with the matching grammar.
+`agent.tool_dispatcher` (overridable for one launch with `OPENHUMAN_TOOL_DISPATCHER`) picks how tools are spoken to the model. `auto` (the default) uses **native tool calling**, structured tool specs through the `ChatModel` adapter and structured calls back, whenever the provider profile supports it, and falls back to JSON-in-tag for prompt-guided providers such as local Ollama. `python` and `typescript` are opt-in: they render the catalogue as code signatures and read code-style calls back, but mis-parse on some models. The session composes its prompt for the chosen dialect and pins the same dialect on the turn harness, so a text dialect keeps its schemas off the wire and the harness recovers calls with the matching grammar.
Canonical `tinytools_agent::dialect::ToolDialect` implementations provide transcript-compatible parsing and rendering directly; OpenHuman converts durable/provider records only at those I/O boundaries: