Class: RubyCoded::Tools::BaseTool
- Inherits:
-
RubyLLM::Tool
- Object
- RubyLLM::Tool
- RubyCoded::Tools::BaseTool
- Defined in:
- lib/ruby_coded/tools/base_tool.rb
Overview
Base class for all tools.
Direct Known Subclasses
CreateDirectoryTool, DeletePathTool, EditFileTool, ListDirectoryTool, ReadFileTool, RunCommandTool, WriteFileTool
Constant Summary collapse
- SAFE_RISK =
:safe- CONFIRM_RISK =
:confirm- DANGEROUS_RISK =
:dangerous
Class Attribute Summary collapse
-
.risk_level ⇒ Object
readonly
Returns the value of attribute risk_level.
Instance Method Summary collapse
-
#initialize(project_root:) ⇒ BaseTool
constructor
A new instance of BaseTool.
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_level ⇒ Object (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 |