The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed crates/openhuman-core/src/agent/session_host/runtime_session.rs,crates/openhuma
Steven Enamakel5e1e7f9d21c0
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rsindex ba97ebedf4..f98a81a27f 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs@@ -74,11 +74,7 @@ struct OpenHumanTurnPrelude {/// Host prompt/utilisation state, shared by the runtime hooks. It is not/// generic conversation state and the runtime never persists it.context: Arc<std::sync::Mutex<crate::agent::context::ContextManager>>,- tool_policy: Arc<- dyn tinyagents_harness::middleware::ToolCallPolicy<- crate::agent::tinyagents::host::OpenHumanRunContext,- >,- >,+ tool_policy: Arc<dyn tinyagents_harness::middleware::ToolCallPolicy<crate::agent::tinyagents::host::OpenHumanRunContext>>,tool_dispatcher: Arc<dyn tinytools_agent::dialect::ToolDialect>,workspace_dir: std::path::PathBuf,action_dir: std::path::PathBuf,@@ -282,7 +278,9 @@ impl OpenHumanTurnPrelude {.filter(|spec| !withheld.contains(&spec.name)).filter(|spec| {self.thread_id.is_some()- || !crate::agent::tinyagents::tool_registration::is_thread_goal_tool(&spec.name)+ || !crate::agent::tinyagents::tool_registration::is_thread_goal_tool(+ &spec.name,+ )}).map(|spec| spec.as_ref().clone()).collect::<Vec<_>>();@@ -863,7 +861,6 @@ impl OpenHumanSessionHost {.unwrap_or_else(|poisoned| poisoned.into_inner()).take_turn_inputs();let origin = options.run_context.data.origin.clone();- let memory_identity = options.run_context.data.memory_identity.clone();let (enriched, memory_turn) = futures::join!(prelude.enrich_request(&original_user_message,@@ -878,7 +875,6 @@ impl OpenHumanSessionHost {view.committed_turns,view.history.last().filter(|last| **last == request.input),origin,- memory_identity,)),);options.run_context.data.memory_turn = memory_turn;diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rsindex ea96110b08..0f2aca7794 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rs@@ -88,8 +88,8 @@ impl OpenHumanTurnPrelude {/// Takes completed memory and queues a user-authored turn's log and recall./// Remembers the turn so the reply is logged under the same identity and/// index, and returns its memory for the run context without engine I/O.- /// `origin` and `memory_identity` are the turn's, as the run context- /// carries them (nothing is read from the running task); a channel turn is+ /// `origin` is the turn's, as the run context carries it (nothing is read+ /// from the running task); a channel turn is/// logged as observed from its sender/// ([`crate::memory::lifecycle::sender::channel_actor`]).pub(super) async fn memory_pre_turn(@@ -98,7 +98,6 @@ impl OpenHumanTurnPrelude {committed_turns: usize,current: Option<&Message>,origin: Option<crate::agent::turn_origin::AgentTurnOrigin>,- memory_identity: Option<crate::memory::scope::MemoryIdentity>,) -> Option<Arc<MemoryTurn>> {let user_text = self.mutable@@ -108,7 +107,10 @@ impl OpenHumanTurnPrelude {.clone()?;let thread_id = self.thread_id.clone()?;let config = self.memory_config().await?;- let mut identity = memory_identity.unwrap_or_default().resolve(&config);+ // The identity the turn's run context carries: the host environment's+ // (a team member's), narrowed to this agent.+ let acting = self.host_env.memory_identity.clone().unwrap_or_default();+ let mut identity = acting.child(&self.agent_definition_id).resolve(&config);if self.omit_memory_context {identity.recall = false;}