Skip to content

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

test(prompts): rename subagent json format test and use explicit variant

Steven Enamakeld6276e30265e
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 431cee3e42..afb46135d1 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
@@ -34,7 +34,7 @@ fn render_subagent_system_prompt_renders_workspace_tail() {
}
#[test]
-fn subagent_prompt_defaults_to_json_and_omits_protocol_without_tools() {
+fn subagent_prompt_with_json_format_and_omits_protocol_without_tools() {
let workspace = std::env::temp_dir().join(format!(
"openhuman_prompt_default_dialect_{}",
uuid::Uuid::new_v4()
@@ -50,7 +50,7 @@ fn subagent_prompt_defaults_to_json_and_omits_protocol_without_tools() {
&[],
"You are a focused sub-agent.",
SubagentRenderOptions::narrow(),
- ToolCallFormat::default(),
+ ToolCallFormat::Json,
&[],
);
assert!(!default_rendered.contains("def test_tool() -> str"));