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
refactor(tinyagents): import summarization types directly from harness
Steven Enamakelcec7d3550aae
diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rsindex a6da8f2091..a3b2df0451 100644--- a/crates/openhuman-core/src/agent/session_host/driver.rs+++ b/crates/openhuman-core/src/agent/session_host/driver.rs@@ -122,7 +122,7 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {}let sidecar = request.run_context.data.session_sidecar.clone();let started = Instant::now();- let user_message = crate::agent::tinyagents::last_user_message(&request.history)+ let user_message = tinyagents_harness::summarization::last_user_message(&request.history).map(crate::agent::message_convert::user_text_with_markers).unwrap_or_default();let context_window = selfdiff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/post_commit.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/post_commit.rsindex dc154a5172..919fb1c98e 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session/post_commit.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/post_commit.rs@@ -134,7 +134,7 @@ pub(super) async fn finalize_committed_turn(let commit_started = std::time::Instant::now();let output = receipt.outcome.output.clone().unwrap_or_default();// Skips compaction checkpoints (user-role, not the user's words).- let input = crate::agent::tinyagents::last_user_message(&receipt.outcome.history)+ let input = tinyagents_harness::summarization::last_user_message(&receipt.outcome.history).map(crate::agent::message_convert::user_text_with_markers).unwrap_or_default();let sidecar = receiptdiff --git a/crates/openhuman-core/src/agent/tinyagents/mod.rs b/crates/openhuman-core/src/agent/tinyagents/mod.rsindex fc14194d1a..3e18fc6575 100644--- a/crates/openhuman-core/src/agent/tinyagents/mod.rs+++ b/crates/openhuman-core/src/agent/tinyagents/mod.rs@@ -75,7 +75,6 @@ pub(crate) use crate::agent::message_convert::chat_message_to_message;#[cfg(feature = "flows")]pub(crate) use crate::agent::message_convert::ta_call_to_oh_call;-pub(crate) use tinyagents_harness::summarization::{last_user_message, CompactionCarry};#[allow(unused_imports)] // Wired into the recall/retrieval facade in workstream 09.2.pub(crate) use embeddings::ProviderEmbeddingModel;pub(crate) use middleware::{diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_outcome.rs b/crates/openhuman-core/src/agent/tinyagents/turn_outcome.rsindex 50e7b95fab..e5a8310aa3 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_outcome.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_outcome.rs@@ -80,7 +80,7 @@ pub(crate) struct TinyagentsTurnOutcome {/// The run's context compaction, when it compacted: re-applied by the/// session driver to the history it persists, so the next turn starts/// from the checkpoint. `None` when the run did not compact.- pub compaction: Option<super::CompactionCarry>,+ pub compaction: Option<tinyagents_harness::summarization::CompactionCarry>,}/// Whether a run's final response is a reply that ran out of output tokensdiff --git a/crates/openhuman-core/src/agent/tinyagents/turn_run_finalize.rs b/crates/openhuman-core/src/agent/tinyagents/turn_run_finalize.rsindex a3aabc1f08..afdc7b1e8a 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_run_finalize.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_run_finalize.rs@@ -310,7 +310,7 @@ pub(super) async fn finalize_turn_outcome(let compaction = run.compacted_history.as_deref()- .and_then(crate::agent::tinyagents::CompactionCarry::from_compacted_history);+ .and_then(tinyagents_harness::summarization::CompactionCarry::from_compacted_history);if let Some(carry) = &compaction {tracing::info!(model,