Skip to content

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

chore: files changed crates/openhuman-core/src/memory/tool_writes.rs,crates/openhuman-core/src/memor

Steven Enamakel12db77e92aa7
diff --git a/crates/openhuman-core/src/memory/tool_writes.rs b/crates/openhuman-core/src/memory/tool_writes.rs
index 570d5ad0dd..9a7f481334 100644
--- a/crates/openhuman-core/src/memory/tool_writes.rs
+++ b/crates/openhuman-core/src/memory/tool_writes.rs
@@ -26,8 +26,8 @@ use tinymemory_tools::pending::{
Ack, Binding, Entry, Epoch, FenceToken, Limits, PendingError, PendingWrites, WriteExecutor,
WriteGate, WriteOperation,
};
-use tinymemory_tools::single::WriteSink;
use tinymemory_tools::ToolScope;
+use tinymemory_tools::WriteSink;
use super::types::ForgetParams;
use crate::config::Config;
diff --git a/crates/openhuman-core/src/memory/tools_read_tests.rs b/crates/openhuman-core/src/memory/tools_read_tests.rs
index 3615213951..22d9ac55b5 100644
--- a/crates/openhuman-core/src/memory/tools_read_tests.rs
+++ b/crates/openhuman-core/src/memory/tools_read_tests.rs
@@ -3,8 +3,12 @@
use super::*;
use crate::memory::test_fixtures::{bind_reference, config_in};
+use crate::memory::ops;
+use crate::memory::types::RecallParams;
use tinymemory_api::MemoryEngine;
+const EVIDENCE_TOKEN_BUDGET: usize = 2_500;
+
// Keep the evidence budget contract tests beside the output they inspect;
// production rendering belongs to TinyMemory's native single tool.
fn capped_evidence(evidence: &str) -> String {
@@ -472,7 +476,7 @@ fn long_evidence_keeps_whole_entries_then_whole_lines_and_says_what_was_left_out
let capped = capped_evidence(&evidence);
let note = capped.rfind("\n\n(").unwrap();
assert!(
- note <= EVIDENCE_TOKENS * 4,
+ note <= EVIDENCE_TOKEN_BUDGET * 4,
"the evidence stays within the budget"
);
assert_whole_lines(&evidence, &capped);
@@ -496,7 +500,7 @@ fn long_evidence_keeps_whole_entries_then_whole_lines_and_says_what_was_left_out
#[test]
fn a_first_line_longer_than_the_budget_is_kept_whole_never_split() {
- let evidence = evidence_of(2, 1, EVIDENCE_TOKENS * 4 + 500);
+ let evidence = evidence_of(2, 1, EVIDENCE_TOKEN_BUDGET * 4 + 500);
let capped = capped_evidence(&evidence);
assert_whole_lines(&evidence, &capped);
assert!(capped.starts_with(evidence.lines().next().unwrap()));