The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed crates/openhuman-core/src/core/all_tool_registry_controller_tests.rs
Steven Enamakela25f3a95dee8
diff --git a/crates/openhuman-core/src/core/all_tool_registry_controller_tests.rs b/crates/openhuman-core/src/core/all_tool_registry_controller_tests.rsindex 0a0feab8cb..0503cbe417 100644--- a/crates/openhuman-core/src/core/all_tool_registry_controller_tests.rs+++ b/crates/openhuman-core/src/core/all_tool_registry_controller_tests.rs@@ -120,3 +120,20 @@ fn raw_tool_registry_decoders_keep_ignored_maps_and_tool_id_errors() {);}}++#[test]+fn raw_tool_registry_get_rejects_invalid_id_before_lookup() {+ let get = tool_registry_entries()+ .into_iter()+ .find(|entry| entry.schema.function == "get")+ .expect("raw get entry");+ for params in [+ Map::new(),+ Map::from_iter([("tool_id".into(), json!(false))]),+ Map::from_iter([("tool_id".into(), json!(" "))]),+ ] {+ let error = futures::executor::block_on(get.invoke(DispatchCtx::unbound(), params))+ .expect_err("invalid id must stop before tool lookup");+ assert_eq!(error, "tool_id must be a non-empty string");+ }+}