Exception: DeepAgentsRb::ToolError
- Defined in:
- lib/deepagents/deepagentsrb/errors.rb
Overview
Error raised when there’s an issue with a tool
Direct Known Subclasses
Instance Attribute Summary collapse
-
#tool_name ⇒ Object
readonly
Returns the value of attribute tool_name.
Instance Method Summary collapse
-
#initialize(tool_name, message) ⇒ ToolError
constructor
A new instance of ToolError.
Constructor Details
#initialize(tool_name, message) ⇒ ToolError
Returns a new instance of ToolError.
12 13 14 15 |
# File 'lib/deepagents/deepagentsrb/errors.rb', line 12 def initialize(tool_name, ) @tool_name = tool_name super("Error in tool '#{tool_name}': #{message}") end |
Instance Attribute Details
#tool_name ⇒ Object (readonly)
Returns the value of attribute tool_name.
10 11 12 |
# File 'lib/deepagents/deepagentsrb/errors.rb', line 10 def tool_name @tool_name end |