Skip to content

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

fix(agent): handle missing tool result gracefully

Steven Enamakeld7cc977d3e4f
diff --git a/crates/openhuman-core/src/agent/tools.rs b/crates/openhuman-core/src/agent/tools.rs
index cc399a060e..a117b5c291 100644
--- a/crates/openhuman-core/src/agent/tools.rs
+++ b/crates/openhuman-core/src/agent/tools.rs
@@ -1,3 +1,27 @@
+//! Agent-owned dialogue and control tools.
+//!
+//! Unlike domain tools (files, memory, search, ...), the tools declared here
+//! act on the agent loop itself rather than on external state:
+//!
+//! - [`ask_clarification::AskClarificationTool`] — early-exit a turn to ask
+//! the user a clarifying question instead of guessing.
+//! - [`delegate::DelegateTool`] and
+//! [`delegate_to_personality::DelegateToPersonalityTool`] — hand a subtask
+//! off to a differently configured sub-agent or a named personality.
+//! - [`plan_exit::PlanExitTool`] — mark a plan-mode pass complete with the
+//! [`plan_exit::PLAN_EXIT_MARKER`] the harness greps for on a plan→build
+//! hand-off.
+//! - [`remember_preference`] / [`save_preference`] — capture user
+//! preferences during a turn.
+//! - `run_workflow` — spawn and await a `skill_runtime` workflow run; gated
+//! behind the `skills` feature so the tool is omitted from the catalog
+//! entirely (not degraded to a disabled-error) on builds without it.
+//! - [`todo::TodoTool`] and [`update_task::UpdateTaskTool`] — maintain the
+//! agent's todo/task board.
+//!
+//! All nine tools are re-exported through `crate::tools`
+//! (`pub use crate::agent::tools::*;` in `tools/mod.rs`), so callers should
+//! reach them via `crate::tools` rather than this module directly.
mod ask_clarification;
mod delegate;
mod delegate_to_personality;