Class: RubyCoded::Tools::BaseTool

Inherits:
RubyLLM::Tool
  • Object
show all
Defined in:
lib/ruby_coded/tools/base_tool.rb

Overview

Base class for all tools.

Constant Summary collapse

SAFE_RISK =
:safe
CONFIRM_RISK =
:confirm
DANGEROUS_RISK =
:dangerous

Class Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project_root:) ⇒ BaseTool

Returns a new instance of BaseTool.



24
25
26
27
# File 'lib/ruby_coded/tools/base_tool.rb', line 24

def initialize(project_root:)
  super()
  @project_root = File.realpath(project_root)
end

Class Attribute Details

.risk_levelObject (readonly)

Returns the value of attribute risk_level.



15
16
17
# File 'lib/ruby_coded/tools/base_tool.rb', line 15

def risk_level
  @risk_level
end