Skip to content

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

refactor(agent): call TurnStop methods directly in turn projection

Steven Enamakel399aef56a848
diff --git a/crates/openhuman-core/src/agent/turn_projection.rs b/crates/openhuman-core/src/agent/turn_projection.rs
index 92913f057e..bcf618d01a 100644
--- a/crates/openhuman-core/src/agent/turn_projection.rs
+++ b/crates/openhuman-core/src/agent/turn_projection.rs
@@ -14,7 +14,7 @@ pub fn stop_fallback_class(note: &str) -> &'static str {
/// [`TurnStop::breaker`] with the OpenHuman stop-reason fallback.
pub fn breaker_stop(note: &str) -> TurnStop {
- crate::agent::turn_projection::breaker_stop(note, stop_fallback_class)
+ TurnStop::breaker(note, stop_fallback_class)
}
/// [`TurnStop::classify`] with the OpenHuman stop-reason fallback.
@@ -28,7 +28,7 @@ pub fn classify_stop(
/// [`TurnStop::from_incomplete_reason`] with the OpenHuman stop-reason fallback.
pub fn stop_from_incomplete(reason: &str) -> TurnStop {
- crate::agent::turn_projection::stop_from_incomplete(reason, stop_fallback_class)
+ TurnStop::from_incomplete_reason(reason, stop_fallback_class)
}
#[cfg(test)]