Skip to content

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

chore(tools): remove unused status tool types

Steven Enamakelbee334a696e6
diff --git a/crates/openhuman-core/src/tools/status/types.rs b/crates/openhuman-core/src/tools/status/types.rs
index 1ff243fe32..9bf02d5bf0 100644
--- a/crates/openhuman-core/src/tools/status/types.rs
+++ b/crates/openhuman-core/src/tools/status/types.rs
@@ -72,6 +72,15 @@ pub enum ToolFailureClass {
/// catalog skill with no direct download cannot be installed automatically
/// (#6277).
Unsupported,
+ /// The model called a real tool with arguments that do not match its
+ /// schema. Nothing ran; the model gets the expected schema back and can
+ /// correct the call. Classified from the harness's own validation answer,
+ /// never from the schema text it echoes.
+ InvalidArguments,
+ /// A command ran and exited non-zero (or was killed by a signal). The
+ /// tool worked; the program it ran reported failure, and its stdout/stderr
+ /// is data for the model, not a verdict about OpenHuman.
+ CommandFailed,
/// Could not be classified into any of the above.
Unknown,
}
@@ -160,9 +169,10 @@ impl ToolFailureClass {
ToolFailureClass::MissingPermission
| ToolFailureClass::MissingApp
| ToolFailureClass::BadCredentials => FailureCategory::NeedsUserConfirmation,
- ToolFailureClass::NotFound | ToolFailureClass::Unsupported => {
- FailureCategory::Permanent
- }
+ ToolFailureClass::NotFound
+ | ToolFailureClass::Unsupported
+ | ToolFailureClass::InvalidArguments
+ | ToolFailureClass::CommandFailed => FailureCategory::Permanent,
}
}
}