Class: Legion::Extensions::Llm::Tool::Halt

Inherits:
Object
  • Object
show all
Defined in:
lib/legion/extensions/llm/tool.rb

Overview

Stops conversation continuation after tool execution

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Halt

Returns a new instance of Halt.



26
27
28
# File 'lib/legion/extensions/llm/tool.rb', line 26

def initialize(content)
  @content = content
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



24
25
26
# File 'lib/legion/extensions/llm/tool.rb', line 24

def content
  @content
end

Instance Method Details

#to_sObject



30
31
32
# File 'lib/legion/extensions/llm/tool.rb', line 30

def to_s
  @content.to_s
end