Skip to content

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

chore: files changed crates/openhuman-core/src/channels/context.rs,crates/openhuman-core/src/channel

Steven Enamakel4f5532efdc5a
diff --git a/crates/openhuman-core/src/channels/context.rs b/crates/openhuman-core/src/channels/context.rs
index 92a804ae4b..2f86fe4019 100644
--- a/crates/openhuman-core/src/channels/context.rs
+++ b/crates/openhuman-core/src/channels/context.rs
@@ -11,11 +11,14 @@ use std::sync::{Arc, Mutex};
use tinytools::Tool;
pub(crate) use tinychannels_runtime::context::{
- clear_sender_history, compact_sender_history, ChannelRouteSelection, ConversationHistoryMap,
+ clear_sender_history, ChannelRouteSelection, ConversationHistoryMap,
CHANNEL_MESSAGE_TIMEOUT_SECS, CHANNEL_TYPING_REFRESH_INTERVAL_SECS,
DEFAULT_CHANNEL_INITIAL_BACKOFF_SECS, DEFAULT_CHANNEL_MAX_BACKOFF_SECS, MAX_CHANNEL_HISTORY,
};
+#[cfg(test)]
+pub(crate) use tinychannels_runtime::context::compact_sender_history;
+
#[cfg(test)]
pub(crate) use tinychannels_runtime::context::{
CHANNEL_HISTORY_COMPACT_CONTENT_CHARS, CHANNEL_HISTORY_COMPACT_KEEP_MESSAGES,
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rs b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rs
index d90613bcd3..87c5089bf6 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/mod.rs
@@ -57,7 +57,7 @@ pub(crate) async fn configured_agent(
config.default_model = Some(route.model.clone());
config.default_temperature = ctx.temperature;
config.multimodal_files = crate::config::MultimodalFileConfig::for_untrusted_channel_input();
- HostAgent::from_config(&dispatch, config, &agent_id).map_err(|error| error.to_string())
+ HostAgent::from_config(&dispatch, config, agent_id).map_err(|error| error.to_string())
}
/// What a channel's binding resolves to for one message.