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
test: add missing test files for workflow runs and flow builder tools
Steven Enamakel93d04c08670e
diff --git a/crates/openhuman-core/src/agent/orchestration/workflow_runs/ops_tests.rs b/crates/openhuman-core/src/agent/orchestration/workflow_runs/ops_tests.rsindex 26e0dee9ad..7fe46fcb60 100644--- a/crates/openhuman-core/src/agent/orchestration/workflow_runs/ops_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/workflow_runs/ops_tests.rs@@ -22,11 +22,11 @@ fn builtin_agents_pass_when_all_known() {#[test]fn unknown_agent_is_reported() {- let errors = validate_agents(&good_def(), |id| id == "researcher");- // planner, critic, summarizer are unknown -> 3 errors.- assert_eq!(errors.len(), 3);+ let errors = validate_agents(&good_def(), |id| id == "planner");+ // critic and summarizer are unknown -> 2 errors.+ assert_eq!(errors.len(), 2, "{errors:?}");assert!(errors.iter().any(- |e| matches!(e, DefinitionError::UnknownAgent { agent_id, .. } if agent_id == "planner")+ |e| matches!(e, DefinitionError::UnknownAgent { agent_id, .. } if agent_id == "critic")));}diff --git a/crates/openhuman-core/src/flows/builder_tools_dry_run_tests.rs b/crates/openhuman-core/src/flows/builder_tools_dry_run_tests.rsindex ed923c6435..f84e21bbd8 100644--- a/crates/openhuman-core/src/flows/builder_tools_dry_run_tests.rs+++ b/crates/openhuman-core/src/flows/builder_tools_dry_run_tests.rs@@ -93,7 +93,7 @@ async fn dry_run_exercises_agent_ref_node_via_mock_agent_runner() {"nodes": [{ "id": "t", "kind": "trigger", "name": "Manual" },{ "id": "a", "kind": "agent", "name": "Plan",- "config": { "agent_ref": "researcher", "prompt": "outline it" } }+ "config": { "agent_ref": "planner", "prompt": "outline it" } }],"edges": [ { "from_node": "t", "to_node": "a" } ]});@@ -255,7 +255,7 @@ async fn dry_run_flags_tool_call_arg_null_resolved_from_unschemad_agent() {"nodes": [{ "id": "t", "kind": "trigger", "name": "Manual" },{ "id": "summarize", "kind": "agent", "name": "Summarize",- "config": { "agent_ref": "researcher", "prompt": "summarize" } },+ "config": { "agent_ref": "planner", "prompt": "summarize" } },{ "id": "post", "kind": "tool_call", "name": "Post","config": { "slug": "oh:noop","args": { "channel": "=nodes.summarize.item.json.channel" } } }@@ -410,7 +410,7 @@ async fn dry_run_passes_when_agent_schema_matches_tool_call_binding() {"nodes": [{ "id": "t", "kind": "trigger", "name": "Manual" },{ "id": "summarize", "kind": "agent", "name": "Summarize",- "config": { "agent_ref": "researcher", "prompt": "summarize",+ "config": { "agent_ref": "planner", "prompt": "summarize","output_parser": { "schema": { "type": "object","required": ["channel"],"properties": { "channel": { "type": "string" } } } } } },@@ -569,7 +569,7 @@ async fn dry_run_passes_when_agent_enum_schema_binds_to_tool_call() {"nodes": [{ "id": "t", "kind": "trigger", "name": "Manual" },{ "id": "triage", "kind": "agent", "name": "Triage",- "config": { "agent_ref": "researcher", "prompt": "triage this",+ "config": { "agent_ref": "planner", "prompt": "triage this","output_parser": { "schema": { "type": "object","required": ["priority"],"properties": {diff --git a/crates/openhuman-core/src/flows/builder_tools_save_and_edit_tests.rs b/crates/openhuman-core/src/flows/builder_tools_save_and_edit_tests.rsindex f483a1a992..97028bc661 100644--- a/crates/openhuman-core/src/flows/builder_tools_save_and_edit_tests.rs+++ b/crates/openhuman-core/src/flows/builder_tools_save_and_edit_tests.rs@@ -377,7 +377,7 @@ async fn save_workflow_accepts_correctly_schemad_graph() {"nodes": [{ "id": "t", "kind": "trigger", "name": "Manual" },{ "id": "summarize", "kind": "agent", "name": "Summarize",- "config": { "agent_ref": "researcher", "prompt": "summarize",+ "config": { "agent_ref": "planner", "prompt": "summarize","output_parser": { "schema": { "type": "object","required": ["channel"],"properties": { "channel": { "type": "string" } } } } } },diff --git a/crates/openhuman-core/src/flows/builder_tools_tests.rs b/crates/openhuman-core/src/flows/builder_tools_tests.rsindex 16f0b2845b..049d4d009c 100644--- a/crates/openhuman-core/src/flows/builder_tools_tests.rs+++ b/crates/openhuman-core/src/flows/builder_tools_tests.rs@@ -185,7 +185,7 @@ fn unresolvable_binding_graph() -> Value {"nodes": [{ "id": "t", "kind": "trigger", "name": "Manual" },{ "id": "summarize", "kind": "agent", "name": "Summarize",- "config": { "agent_ref": "researcher", "prompt": "summarize",+ "config": { "agent_ref": "planner", "prompt": "summarize","output_parser": { "schema": { "type": "object","properties": { "summary": { "type": "string" } } } } } },{ "id": "notify", "kind": "tool_call", "name": "Notify",diff --git a/crates/openhuman-core/src/flows/ops_connection_ref_gate_tests.rs b/crates/openhuman-core/src/flows/ops_connection_ref_gate_tests.rsindex 6f46285bf3..9507627a2f 100644--- a/crates/openhuman-core/src/flows/ops_connection_ref_gate_tests.rs+++ b/crates/openhuman-core/src/flows/ops_connection_ref_gate_tests.rs@@ -335,7 +335,7 @@ async fn mock_opaque_tool_call_upstream_ref_matches_native_and_composio_upstream{ "id": "code_up", "kind": "code", "name": "Code","config": { "language": "javascript", "source": "return {};" } },{ "id": "agent_up", "kind": "agent", "name": "Agent",- "config": { "agent_ref": "researcher", "prompt": "x" } },+ "config": { "agent_ref": "planner", "prompt": "x" } },{ "id": "native_up", "kind": "tool_call", "name": "Link","config": { "slug": "oh:storage_get_link", "args": { "file_id": "f" } } },{ "id": "composio_up", "kind": "tool_call", "name": "Profile",diff --git a/crates/openhuman-core/src/flows/tools_tests.rs b/crates/openhuman-core/src/flows/tools_tests.rsindex d18a4898f2..74d4323222 100644--- a/crates/openhuman-core/src/flows/tools_tests.rs+++ b/crates/openhuman-core/src/flows/tools_tests.rs@@ -391,7 +391,7 @@ async fn propose_workflow_rejects_agent_binding_missing_declared_field() {"nodes": [{ "id": "t", "kind": "trigger", "name": "Manual" },{ "id": "summarize", "kind": "agent", "name": "Summarize",- "config": { "agent_ref": "researcher", "prompt": "summarize",+ "config": { "agent_ref": "planner", "prompt": "summarize","output_parser": { "schema": { "type": "object","properties": { "summary": { "type": "string" } } } } } },{ "id": "notify", "kind": "tool_call", "name": "Notify",