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(session-host): add runtime session state tracking
Steven Enamakel971c43fca2a8
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rsindex 209dbdffe5..25e03e1dab 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs@@ -55,8 +55,7 @@ pub(super) struct OpenHumanSessionState {required_output: Option<tinyagents_harness::config::RequiredOutput>,pub(crate) pending_turn_overrides: super::types::TurnOverrides,pub(super) active_turn_overrides: super::types::TurnOverrides,- pub(crate) pending_response_shape:- Option<Arc<tinyagents_harness::middleware::ResponseShapeScope>>,+ pub(crate) pending_response_shape: super::types::PendingResponseShape,pub(super) reply_language_directive: Option<String>,pub(super) time_zone: Option<String>,prelude: Option<OpenHumanTurnPrelude>,diff --git a/crates/openhuman-core/src/agent/session_host/types.rs b/crates/openhuman-core/src/agent/session_host/types.rsindex 7752bbdfd6..780c0f5e77 100644--- a/crates/openhuman-core/src/agent/session_host/types.rs+++ b/crates/openhuman-core/src/agent/session_host/types.rs@@ -55,13 +55,17 @@ pub struct TurnOverrides {pub suppress_transcript_autoload: bool,}+/// The next turn's response shape, consumed at its start.+pub(crate) type PendingResponseShape =+ Option<Arc<tinyagents_harness::middleware::ResponseShapeScope>>;+/// What the runtime hook hands one user turn's request enrichment: this/// turn's [`TurnOverrides`] (consumed) and the reply-language instruction the/// host armed with `set_reply_language_directive` (kept for later turns).#[derive(Debug, Default)]pub(crate) struct TurnInputs {pub(crate) overrides: TurnOverrides,- pub(crate) response_shape: Option<Arc<tinyagents_harness::middleware::ResponseShapeScope>>,+ pub(crate) response_shape: PendingResponseShape,pub(crate) reply_language_directive: Option<String>,pub(crate) time_zone: Option<String>,}