Skip to content

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

test(subagent-prompt): correct default dialect expectation from Python to JSON

Steven Enamakel5e8c0e2d7f88
diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests_subagent_render_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests_subagent_render_tests.rs
index d7fe0e3970..527307e2b2 100644
--- a/crates/openhuman-core/src/agent/prompts/mod_tests_subagent_render_tests.rs
+++ b/crates/openhuman-core/src/agent/prompts/mod_tests_subagent_render_tests.rs
@@ -65,7 +65,7 @@ fn render_subagent_system_prompt_renders_workspace_tail() {
}
#[test]
-fn subagent_prompt_defaults_to_python_and_omits_protocol_without_tools() {
+fn subagent_prompt_defaults_to_json_and_omits_protocol_without_tools() {
let workspace = std::env::temp_dir().join(format!(
"openhuman_prompt_default_dialect_{}",
uuid::Uuid::new_v4()
@@ -84,7 +84,8 @@ fn subagent_prompt_defaults_to_python_and_omits_protocol_without_tools() {
ToolCallFormat::default(),
&[],
);
- assert!(default_rendered.contains("def test_tool() -> str"));
+ assert!(!default_rendered.contains("def test_tool() -> str"));
+ assert!(default_rendered.contains("test_tool"));
assert!(!default_rendered.contains("test_tool[]"));
let no_tools = render_subagent_system_prompt(