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/agent/tinyagents/memory_summarizer_tests.rs,crates/op

Steven Enamakelbc215275c45b
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 73270dcffc..758a296c1c 100644
--- a/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/memory_summarizer_tests.rs
@@ -52,7 +52,9 @@ async fn bound_turn(tmp: &tempfile::TempDir) -> Arc<MemoryTurn> {
identity,
thread_id: "t".into(),
pack: None,
- in_prompt_from: Arc::new(tinymemory_tools::lifecycle::window::InPromptFrom::new(0, 20)),
+ in_prompt_from: Arc::new(tinymemory_tools::lifecycle::window::InPromptFrom::new(
+ 0, 20,
+ )),
core: None,
})
}
@@ -259,7 +261,9 @@ async fn a_held_memory_engine_does_not_delay_transcript_compaction() {
identity,
thread_id: "held".into(),
pack: None,
- in_prompt_from: Arc::new(tinymemory_tools::lifecycle::window::InPromptFrom::new(0, 20)),
+ in_prompt_from: Arc::new(tinymemory_tools::lifecycle::window::InPromptFrom::new(
+ 0, 20,
+ )),
core: None,
});
let summarizer = MemoryRecallSummarizer::wrap(Box::new(ConcatSummarizer), Some(turn));
diff --git a/crates/openhuman-core/src/memory/lifecycle/hooks.rs b/crates/openhuman-core/src/memory/lifecycle/hooks.rs
index 70d89ce837..3003441513 100644
--- a/crates/openhuman-core/src/memory/lifecycle/hooks.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/hooks.rs
@@ -19,16 +19,10 @@ use crate::config::Config;
use crate::core::runtime::{CoreContext, DispatchCtx};
use crate::memory::engine;
-pub use native_turn::{CLOSE_TAG, MAX_TOOL_LINE_CHARS, OPEN_TAG};
-
-/// The user message's index for a turn that follows `committed_turns`.
-#[must_use]
-pub fn user_turn_index(committed_turns: usize) -> u32 {
- native_turn::user_turn_index(committed_turns)
-}
+pub use native_turn::{CLOSE_TAG, MAX_TOOL_LINE_CHARS, OPEN_TAG, user_turn_index};
/// A native turn pack with the citation view used by OpenHuman's chat UI.
-#[derive(Debug, Clone, Serialize)]
+#[derive(Debug, Clone, PartialEq, Serialize)]
pub struct TurnPack {
/// TinyMemory's authoritative pack and refusal state.
#[serde(flatten)]