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(session_host): reuse shared stop copy provider
Steven Enamakel772d3991d91d
diff --git a/crates/openhuman-core/src/agent/session_host/stop_summary.rs b/crates/openhuman-core/src/agent/session_host/stop_summary.rsindex d43e4328b0..062dd8bff7 100644--- a/crates/openhuman-core/src/agent/session_host/stop_summary.rs+++ b/crates/openhuman-core/src/agent/session_host/stop_summary.rs@@ -19,23 +19,7 @@use std::fmt::Write as _;use super::turn_checkpoint::CheckpointToolResult;-use tinyagents_harness::turn_stop::{CopyProvider, CopyRequest, TurnStop, TurnStopCopyKey};--struct OpenHumanStopCopy;--impl CopyProvider for OpenHumanStopCopy {- fn copy_override(&self, request: &CopyRequest<'_>) -> Option<String> {- match request {- CopyRequest::TurnStop { key: TurnStopCopyKey::ProviderConfig, .. } => Some(- "the configured model or provider rejected the request; check the model and API key in Connections".into(),- ),- CopyRequest::TurnStop { key: TurnStopCopyKey::MissingConnection, .. } => Some(- "a service this needs isn't connected; connect it in Connections, then ask me to try again".into(),- ),- _ => None,- }- }-}+use tinyagents_harness::turn_stop::{CopyRequest, TurnStop, TurnStopCopyKey};/// Longest error line shown for one tool, in characters.const ERROR_LINE_CHARS: usize = 120;@@ -188,7 +172,7 @@ impl StopReasonKind {Self::Generic => TurnStopCopyKey::Generic,};tinyagents_harness::turn_stop::render_copy(- &OpenHumanStopCopy,+ &crate::agent::tinyagents::middleware::repeated_failure::OpenHumanCopyProvider,&CopyRequest::TurnStop {key,operation: None,