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
feat(tinyagents): add verify_before_finish module
Steven Enamakel7893ccef25c9
diff --git a/crates/openhuman-core/src/agent/tinyagents/mod.rs b/crates/openhuman-core/src/agent/tinyagents/mod.rsindex 6dc62a2226..779c4af236 100644--- a/crates/openhuman-core/src/agent/tinyagents/mod.rs+++ b/crates/openhuman-core/src/agent/tinyagents/mod.rs@@ -63,6 +63,7 @@ mod turn_run_error;mod turn_run_finalize;mod turn_runner;mod use_skill_dispatch;+mod verify_before_finish;pub(crate) use crate::agent::message_convert::chat_message_to_message;#[cfg(feature = "flows")]diff --git a/crates/openhuman-core/src/agent/tinyagents/verify_before_finish.rs b/crates/openhuman-core/src/agent/tinyagents/verify_before_finish.rsnew file mode 100644index 0000000000..9c6d09d14e--- /dev/null+++ b/crates/openhuman-core/src/agent/tinyagents/verify_before_finish.rs@@ -0,0 +1,34 @@+//! Skeleton.++use std::sync::Arc;++use tinyagents_harness::middleware::FinishActivity;+use tinyagents_harness::runtime::AgentHarness;++pub(super) const MIN_TOOL_ROUNDS: usize = 5;+pub(super) const TODO_TOOL: &str = "todo";+pub(super) const CHECK_MARKER: &str = "Before finishing";++pub(super) fn applies(_subagent: bool, _agent: Option<&str>) -> bool {+ false+}++pub(super) fn should_check(_activity: &FinishActivity) -> bool {+ false+}++pub(super) fn check_message() -> String {+ String::new()+}++pub(super) fn install<C: Send + Sync + 'static>(+ _harness: &mut AgentHarness<(), C>,+ _subagent: bool,+ _agent: Option<&str>,+) {+ let _ = Arc::new(());+}++#[cfg(test)]+#[path = "verify_before_finish_tests.rs"]+mod tests;