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.



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

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.



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

def risk_level
  @risk_level
end