Skip to content

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

test(memory): exercise the run-scoped budget through registration with reads

M3gA-Mindffe1c501a7a9
diff --git a/crates/openhuman-core/src/agent/tinyagents/harness_tool_registration_tests.rs b/crates/openhuman-core/src/agent/tinyagents/harness_tool_registration_tests.rs
index 44d7969bd9..21e80d909b 100644
--- a/crates/openhuman-core/src/agent/tinyagents/harness_tool_registration_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/harness_tool_registration_tests.rs
@@ -69,7 +69,7 @@ async fn registered_memory_dispatch_enforces_one_budget_across_distinct_calls()
.execute(
&(),
CallId::new(format!("call-{index}")),
- serde_json::json!({"action":"learn","text":format!("fact {index}")}),
+ serde_json::json!({"action":"fetch","query":format!("fact {index}")}),
ToolCallOptions::default(),
&parent,
)
@@ -77,5 +77,4 @@ async fn registered_memory_dispatch_enforces_one_budget_across_distinct_calls()
.unwrap();
assert_eq!(result.is_error, index == 8, "call {index}");
}
- crate::memory::tool_writes::drain(&config).await;
}