Skip to content

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

test(agent): add memory summarizer and pack tests

Steven Enamakel7390d390ab94
diff --git a/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rs b/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rs
index 051ff42c8f..dbb6f33931 100644
--- a/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rs
@@ -23,6 +23,7 @@ async fn bound_turn(tmp: &tempfile::TempDir) -> Arc<MemoryTurn> {
bind_reference(&config);
let identity = MemoryIdentity::agent("orchestrator").resolve(&config);
pre_turn(
+ &crate::core::runtime::DispatchCtx::ambient(),
&config,
&identity,
PreTurnInput {
@@ -53,6 +54,7 @@ async fn bound_turn(tmp: &tempfile::TempDir) -> Arc<MemoryTurn> {
identity,
thread_id: "t".into(),
pack: None,
+ core: None,
})
}
@@ -233,6 +235,7 @@ async fn a_held_memory_engine_does_not_delay_transcript_compaction() {
identity,
thread_id: "held".into(),
pack: None,
+ core: None,
});
let summarizer = MemoryRecallSummarizer::wrap(Box::new(ConcatSummarizer), Some(turn));
let record = tokio::time::timeout(
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/memory_pack_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/memory_pack_tests.rs
index b3105dae03..9ddce6fd36 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/memory_pack_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/memory_pack_tests.rs
@@ -19,6 +19,7 @@ fn context(pack: Option<TurnPack>) -> RunContext<OpenHumanRunContext> {
config: Arc::new(config),
thread_id: "t".into(),
pack,
+ core: None,
}));
RunContext::new(RunConfig::new("memory-pack-test"), data)
}