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 persona's scope — its code grant
minus disabled_tool_ids (see Protege::ToolScoped). Distinct from ToolNotFoundError (the tool
does not exist at all): here the tool exists but is withheld from this persona, so dispatch refuses
it before #use runs and the model gets a serialized failure to self-correct from. Guards the case
where a tool disabled 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.
10 |
# File 'lib/protege/errors/tool_not_available_error.rb', line 10 def initialize(name:) = super("tool :#{name} is not available to this persona") |