Skip to content

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

test(embed): cover tool search before shell in refused tool generation

Steven Enamakelf343b5c5371d
diff --git a/crates/openhuman-embed/tests/profile_refused_tool_generation.rs b/crates/openhuman-embed/tests/profile_refused_tool_generation.rs
index 2beecd643c..f3e0e22f80 100644
--- a/crates/openhuman-embed/tests/profile_refused_tool_generation.rs
+++ b/crates/openhuman-embed/tests/profile_refused_tool_generation.rs
@@ -61,6 +61,8 @@ impl Respond for Script {
"schedule":{"kind":"at","at":self.fire_at},"command":"echo hi"}),
)
} else if prompt.contains("run shell") && results == 0 {
+ call("tool_search", json!({"query":"cron schedule job"}))
+ } else if prompt.contains("run shell") && results == 1 {
call("shell", json!({"command":"ls"}))
} else {
chat_completion("done")