Exception: Protege::ToolNotAvailableError
- Defined in:
- lib/protege/errors/tool_not_available_error.rb
Overview
The model called a registered tool that is not in the current agent's scope for this run — the tools
its attached toolkits expose to the run's sender (see Protege::Toolable / AgentToolkit). Distinct
from ToolNotFoundError (the tool does not exist at all): here the tool exists but is withheld from
this agent, so dispatch refuses it before #use runs and the model gets a serialized failure to
self-correct from. Guards the case where a tool that left scope mid-thread is still visible to the
model in earlier turns.
Constant Summary
Constants inherited from Error
Error::PERMANENT, Error::TRANSIENT
Instance Method Summary collapse
-
#initialize(name:) ⇒ ToolNotAvailableError
constructor
A new instance of ToolNotAvailableError.
Constructor Details
#initialize(name:) ⇒ ToolNotAvailableError
Returns a new instance of ToolNotAvailableError.
11 |
# File 'lib/protege/errors/tool_not_available_error.rb', line 11 def initialize(name:) = super("tool :#{name} is not available to this agent") |