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/host/run_context.rs

Steven Enamakel49efa7b5b2e4
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
index 4c1b37069e..5a0eb505c3 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs
@@ -307,6 +307,11 @@ pub struct OpenHumanRunContext {
/// the registry that recovers positional / code-style calls; `Auto`
/// (the default) leaves the harness to choose from the model profile.
pub(crate) tool_dialect: tinyagents_harness::config::ToolDispatcher,
+ /// The memory pack recalled for this turn (`memory::lifecycle::hooks::
+ /// pre_turn`). `MemoryPackMiddleware` adds it to every model request of
+ /// the turn, ephemerally: it is never part of the committed transcript.
+ /// A child run recalls its own and does not inherit it.
+ pub(crate) memory_pack: Option<Arc<crate::memory::lifecycle::hooks::TurnPack>>,
}
/// Minimal immutable authority view exposed to shared tools through the
@@ -355,6 +360,7 @@ impl OpenHumanRunContext {
session_sidecar: Arc::new(Mutex::new(SessionTurnSidecar::default())),
required_output: None,
tool_dialect: tinyagents_harness::config::ToolDispatcher::Auto,
+ memory_pack: None,
}
}
@@ -445,6 +451,7 @@ impl OpenHumanRunContext {
child.parent_subagent_usage = Some(self.subagent_usage.clone());
child.subagent_usage = Arc::new(Mutex::new(Vec::new()));
child.resolved_route = Arc::new(Mutex::new(None));
+ child.memory_pack = None;
child
}