Skip to content

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

test(tinyagents): reformat spawn_subagent schema fixture

Steven Enamakelfaac1829ab91
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_policy_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_policy_tests.rs
index 4c64f8b257..3d1937b695 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_policy_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_policy_tests.rs
@@ -30,7 +30,15 @@ impl tinytools::Tool for RoutingFakeTool {
}
fn parameters_schema(&self) -> serde_json::Value {
if self.0 == "spawn_subagent" {
- json!({"type":"object","properties":{"agent_id":{"type":"string","enum":["workflow_builder","flow_discovery"]}}})
+ json!({
+ "type": "object",
+ "properties": {
+ "agent_id": {
+ "type": "string",
+ "enum": ["workflow_builder", "flow_discovery"]
+ }
+ }
+ })
} else {
json!({ "type": "object" })
}