Skip to content

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

chore(deps): update Cargo.lock

Steven Enamakelbd537cebc4f9
diff --git a/Cargo.lock b/Cargo.lock
index 59edc3315e..41efc58bac 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4428,6 +4428,7 @@ dependencies = [
"tinymcp-bus",
"tinymemory-api",
"tinymemory-tools",
+ "tinytools",
"tokio",
"tracing-subscriber",
"url",
diff --git a/crates/openhuman-embed/src/agent/definition_tests.rs b/crates/openhuman-embed/src/agent/definition_tests.rs
index adbbf034cb..576ed4f397 100644
--- a/crates/openhuman-embed/src/agent/definition_tests.rs
+++ b/crates/openhuman-embed/src/agent/definition_tests.rs
@@ -34,3 +34,18 @@ fn setters_override_one_aspect_each() {
assert_eq!(def.temperature, 0.1);
assert_eq!(def.display_name(), "Alpha");
}
+
+#[test]
+fn tool_rules_reach_the_core_definition() {
+ let rules = tinytools::ToolRules::from_allow_deny(Vec::<String>::new(), ["mcp_*"]);
+ let def = AgentDefinitionSpec::new()
+ .tool_rules(rules.clone())
+ .into_core("narrow")
+ .unwrap();
+ assert_eq!(def.tool_rules, Some(rules));
+ assert!(AgentDefinitionSpec::new()
+ .into_core("open")
+ .unwrap()
+ .tool_rules
+ .is_none());
+}