Skip to content

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

feat(agent): expose tool_rules in agent registry schemas

Steven Enamakel65a9a1f8c516
diff --git a/crates/openhuman-core/src/agent/registry/schemas.rs b/crates/openhuman-core/src/agent/registry/schemas.rs
index 6b3a06dc04..c5b8010108 100644
--- a/crates/openhuman-core/src/agent/registry/schemas.rs
+++ b/crates/openhuman-core/src/agent/registry/schemas.rs
@@ -129,6 +129,12 @@ pub fn schemas(function: &str) -> ControllerSchema {
optional_string("system_prompt", "Custom instructions."),
optional_string_array("tool_allowlist", "Allowed tool names; '*' means all."),
optional_string_array("tool_denylist", "Denied tool names."),
+ FieldSchema {
+ name: "tool_rules",
+ ty: TypeSchema::Json,
+ comment: "Tool rules (tinytools::ToolRules): allow/deny/hide/approval patterns applied to the agent's catalogue, tool_search and calls. An empty rule set clears them.",
+ required: false,
+ },
optional_subagents_policy(
"subagents",
"Subagent delegation policy. Only ids in allowlist may be spawned.",
@@ -156,6 +162,12 @@ pub fn schemas(function: &str) -> ControllerSchema {
optional_string("system_prompt", "Custom instructions."),
optional_string_array("tool_allowlist", "Allowed tool names; '*' means all."),
optional_string_array("tool_denylist", "Denied tool names."),
+ FieldSchema {
+ name: "tool_rules",
+ ty: TypeSchema::Json,
+ comment: "Tool rules (tinytools::ToolRules): allow/deny/hide/approval patterns applied to the agent's catalogue, tool_search and calls. An empty rule set clears them.",
+ required: false,
+ },
optional_subagents_policy(
"subagents",
"Subagent delegation policy. Only ids in allowlist may be spawned.",