Exception: DeepAgentsRb::ToolError

Inherits:
Error
  • Object
show all
Defined in:
lib/deepagents/deepagentsrb/errors.rb

Overview

Error raised when there’s an issue with a tool

Direct Known Subclasses

ToolNotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message)
  @tool_name = tool_name
  super("Error in tool '#{tool_name}': #{message}")
end

Instance Attribute Details

#tool_nameObject (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