ToolValidationException class
Thrown when tool call arguments fail validation against the tool's declared parameter schema.
- Inheritance
-
- Object
- AgentHarnessException
- ToolValidationException
Constructors
- ToolValidationException(String toolName, String message, {Object? cause, StackTrace? causeStack})
-
Creates a ToolValidationException for
toolName.const
Properties
- cause → Object?
-
The original error that caused this exception, if any.
finalinherited
- causeStack → StackTrace?
-
The stack trace of the original error, if any.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Human-readable description of what went wrong.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toolName → String
-
The name of the tool whose arguments failed validation.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited