Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(session_host): inline transcript snapshot sink import

Steven Enamakel874565132115
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
index ec044f95ee..ba8b3b72e3 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -36,10 +36,7 @@ use crate::agent::{
session_host::{
driver::OpenHumanSessionDriver, OpenHumanSessionHooks, OpenHumanTranscriptCodec,
},
- tinyagents::{
- host::OpenHumanRunContext,
- middleware::turn_context::{TranscriptSnapshotSink, TurnContextMiddleware},
- },
+ tinyagents::{host::OpenHumanRunContext, middleware::turn_context::TurnContextMiddleware},
};
#[path = "runtime_session_progress.rs"]
@@ -815,7 +812,7 @@ impl OpenHumanSessionHost {
+ usize::from(view.history.last() != Some(&request.input));
Box::pin(async move {
let transcript_snapshot =
- TranscriptSnapshotSink::default();
+ crate::agent::tinyagents::middleware::turn_context::TranscriptSnapshotSink::default();
transcript_snapshot
.lock()
.unwrap_or_else(std::sync::PoisonError::into_inner)