Exception: Protege::InvalidToolResultError
- Defined in:
- lib/protege/errors/invalid_tool_result_error.rb
Overview
A tool's #use returned something other than a Protege::Result. Tools must build their return
value via Result.success / Result.failure.
Constant Summary
Constants inherited from Error
Error::PERMANENT, Error::TRANSIENT
Instance Method Summary collapse
-
#initialize(tool:, got:) ⇒ InvalidToolResultError
constructor
A new instance of InvalidToolResultError.
Constructor Details
#initialize(tool:, got:) ⇒ InvalidToolResultError
Returns a new instance of InvalidToolResultError.
7 |
# File 'lib/protege/errors/invalid_tool_result_error.rb', line 7 def initialize(tool:, got:) = super("#{tool}#use must return a Protege::Result, got #{got}") |