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
feat(accessors): add session_id and session_generations accessors
Steven Enamakelb3c9c7fd6d24
diff --git a/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs b/crates/openhuman-core/src/agent/session_host/runtime/accessors.rsindex c1c10c9893..ca056c708f 100644--- a/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs@@ -347,6 +347,32 @@ impl OpenHumanSessionHost {self.thread_id.as_deref()}+ /// Durable id of the session this host is bound to, or `None` when it has+ /// no conversation identity (a sub-agent, or an unthreaded CLI turn).+ ///+ /// This is TinyAgents' identity, not a host-invented one: it is what+ /// addresses the transcript, and it is stamped into `_meta.session_id`.+ pub fn session_id(&self) -> Option<String> {+ self.session.as_ref().map(|session| session.session_id())+ }++ /// Every generation of this conversation, oldest first.+ ///+ /// A compaction seals a generation and opens the next rather than+ /// rewriting history, so a long conversation is a chain of transcripts.+ /// The model sees only the head; this is how a host reads back the whole+ /// thing. Empty when nothing has been persisted yet.+ pub fn session_generations(&self) -> Vec<String> {+ let Some(session) = self.session.as_ref() else {+ return Vec::new();+ };+ self.session_locator()+ .session_chain(session)+ .iter()+ .map(|generation| generation.session_id())+ .collect()+ }+/// Override the agent definition name used for session transcript/// file paths. Callers (e.g. the web channel) use this to scope/// transcripts per thread so each conversation thread gets its owndiff --git a/vendor/tinyagents b/vendor/tinyagentsindex 1f7dd3db70..69008ca92b 160000--- a/vendor/tinyagents+++ b/vendor/tinyagents@@ -1 +1 @@-Subproject commit 1f7dd3db7025c3b99114b01be42897fa0bb4c11b+Subproject commit 69008ca92b56a36d937a08bf099af6fc7551281c