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
fix(tests): add missing fields to test structs after API changes
Steven Enamakel39c1f0a9fbb2
diff --git a/crates/openhuman-core/src/tools/impl/filesystem/mod_tests.rs b/crates/openhuman-core/src/tools/impl/filesystem/mod_tests.rsindex 14f872419c..8fe8cdcd02 100644--- a/crates/openhuman-core/src/tools/impl/filesystem/mod_tests.rs+++ b/crates/openhuman-core/src/tools/impl/filesystem/mod_tests.rs@@ -163,8 +163,10 @@ fn no_descriptor_leaves_the_policy_untouched() {assert_eq!(scoped.trusted_roots, base.trusted_roots);// ... and an all-default context with no workspace behaves the same.- let ctx: ToolExecutionContext =- ToolExecutionContext::from_run_context(&RunContext::new(RunConfig::new("test-run"), ()));+ let ctx: ToolExecutionContext = ToolExecutionContext::from_run_context(+ &RunContext::new(RunConfig::new("test-run"), ()),+ tinyagents_harness::ids::CallId::new("test-call"),+ );let scoped = security_for_tool_context(&base, Some(&ctx), "file_read");assert_eq!(scoped.action_dir, base.action_dir);assert_eq!(scoped.trusted_roots, base.trusted_roots);diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rsindex 252626bb1e..9239d481a0 100644--- a/tests/agent_harness_e2e.rs+++ b/tests/agent_harness_e2e.rs@@ -2446,6 +2446,7 @@ mod streaming_support {content: Vec::<ContentBlock>::new(),tool_calls: vec![ToolCall::new(id, name, args)],usage: Some(usage),+ origin: None,},usage: Some(usage),finish_reason: Some("tool_calls".to_string()),@@ -2630,6 +2631,7 @@ mod streaming_support {}],is_error: false,markdown_formatted: None,+ ..ToolResult::default()})}@@ -2723,27 +2725,32 @@ async fn streaming_tool_call_accumulation() {call_id: "stream-1".to_string(),content: String::new(),tool_name: Some("echo_tool".to_string()),+ content_index: None,}),// Four argument fragments — mid-key / mid-value splits.ModelStreamItem::ToolCallDelta(ToolDelta {call_id: "stream-1".to_string(),content: chunk0,tool_name: None,+ content_index: None,}),ModelStreamItem::ToolCallDelta(ToolDelta {call_id: "stream-1".to_string(),content: chunk1,tool_name: None,+ content_index: None,}),ModelStreamItem::ToolCallDelta(ToolDelta {call_id: "stream-1".to_string(),content: chunk2,tool_name: None,+ content_index: None,}),ModelStreamItem::ToolCallDelta(ToolDelta {call_id: "stream-1".to_string(),content: chunk3,tool_name: None,+ content_index: None,}),],profile: ModelProfile {diff --git a/tests/agent_turn_overrides_e2e.rs b/tests/agent_turn_overrides_e2e.rsindex 8d34dd250f..d3f040be7b 100644--- a/tests/agent_turn_overrides_e2e.rs+++ b/tests/agent_turn_overrides_e2e.rs@@ -176,7 +176,7 @@ impl ChatModel<()> for ScriptedModel {ModelStreamItem::Started,ModelStreamItem::Completed(self.pop()),];- Ok(Box::pin(futures::stream::iter(items)))+ Ok(ModelStream::new(Box::pin(futures::stream::iter(items))))}}@@ -216,6 +216,7 @@ impl Tool for EchoTool {}],is_error: false,markdown_formatted: None,+ ..ToolResult::default()})}}