Skip to content

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

test(tinyagents): assert OpenHuman's default tool dispatcher

Steven Enamakel40b9d671aed3
diff --git a/crates/openhuman-core/src/agent/tinyagents/config_tests.rs b/crates/openhuman-core/src/agent/tinyagents/config_tests.rs
index cd39d67ae3..ed41a94930 100644
--- a/crates/openhuman-core/src/agent/tinyagents/config_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/config_tests.rs
@@ -56,7 +56,16 @@ fn default_config_maps_to_the_crate_defaults() {
// unconfigured crate config.
let s = session_config_from(&base());
assert_eq!(s.turn, TurnConfig::default());
- assert_eq!(s.tools, ToolConfig::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()
+ );
assert_eq!(s.memory.max_memory_context_chars, 2000);
}