Skip to content

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

feat(channels): expose progressive delivery helpers for native runner

Steven Enamakeld4c896ce857f
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs b/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs
index 6fb02f67b5..408e8c5285 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs
@@ -12,6 +12,7 @@
mod helpers;
pub(crate) mod host_agent;
+mod native_runner;
mod processor;
mod routing;
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs
index b77997b66b..004b58c5de 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs
@@ -93,7 +93,9 @@ pub(super) fn spawn_native_progress(
})
}
-fn delivery_succeeded(result: &tinychannels_bus::module_progressive::ProgressiveResult) -> bool {
+pub(crate) fn delivery_succeeded(
+ result: &tinychannels_bus::module_progressive::ProgressiveResult,
+) -> bool {
use tinychannels_bus::module_progressive::ProgressiveResult;
match result {
ProgressiveResult::Updated => true,
@@ -140,7 +142,7 @@ fn delivery_unsupported_count(
}
}
-fn output_event(progress: AgentProgress) -> Option<ChannelOutputEvent> {
+pub(crate) fn output_event(progress: AgentProgress) -> Option<ChannelOutputEvent> {
match progress {
AgentProgress::TextDelta { delta, iteration } => Some(ChannelOutputEvent::TextDelta {
text: delta,