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(flows): update tests for new tool and flow signatures
Steven Enamakel6fa87bc6cc40
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 1e3b18303b..e0bc33ab70 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@@ -408,7 +408,7 @@ async fn save_workflow_accepts_correctly_schemad_graph() {#[tokio::test]async fn list_node_kinds_tool_returns_every_kind() {- let tool = list_node_kinds_tool();+ let tool = list_node_kinds_tool(Arc::new(Config::default()));let result = tool.execute(json!({})).await.unwrap();assert!(!result.is_error, "{}", result.output());let parsed: Value = serde_json::from_str(&result.output()).unwrap();@@ -429,7 +429,7 @@ async fn list_node_kinds_tool_returns_every_kind() {#[tokio::test]async fn get_node_kind_contract_tool_returns_contract_and_rejects_unknown() {- let tool = get_node_kind_contract_tool();+ let tool = get_node_kind_contract_tool(Arc::new(Config::default()));let ok = tool.execute(json!({ "kind": "tool_call" })).await.unwrap();assert!(!ok.is_error, "{}", ok.output());diff --git a/crates/openhuman-core/src/flows/copilot_bus_tests.rs b/crates/openhuman-core/src/flows/copilot_bus_tests.rsindex 31830c209b..f7600b1677 100644--- a/crates/openhuman-core/src/flows/copilot_bus_tests.rs+++ b/crates/openhuman-core/src/flows/copilot_bus_tests.rs@@ -1,6 +1,5 @@use super::*;use serde_json::json;-use tinytools::Tool as _;#[tokio::test]async fn module_tool_descriptors_preserve_run_and_sandbox_safety_metadata() {@@ -62,7 +61,8 @@ fn tool_context(#[tokio::test]async fn concurrent_tool_callbacks_keep_each_explicit_profile_scope() {- use crate::core::runtime::{ContextOverlay, CoreContext, DispatchCtx, DomainSet, ToolGroups};+ use crate::core::runtime::{ContextOverlay, CoreContext, DomainSet};+ use crate::tools::toolpacks::ToolGroups;let workspace = tempfile::tempdir().expect("temporary workspace");let mut config = Config::default();@@ -91,7 +91,6 @@ async fn concurrent_tool_callbacks_keep_each_explicit_profile_scope() {let name = name.to_string();CoreContext::scope(context.clone(), async move {crate::flows::ops::flows_create(- &DispatchCtx::new(context),&config,name,graph,@@ -154,7 +153,6 @@ async fn module_run_flow_uses_the_host_detached_runner_and_requires_a_saved_flow);let flow = crate::flows::ops::flows_create(- &crate::core::runtime::DispatchCtx::ambient(),&config,"Detached Copilot run".into(),json!({