Class: RubyLLM::Contract::Prompt::Nodes::RuleNode

Inherits:
RubyLLM::Contract::Prompt::Node show all
Defined in:
lib/ruby_llm/contract/prompt/nodes/rule_node.rb

Instance Attribute Summary

Attributes inherited from RubyLLM::Contract::Prompt::Node

#content, #type

Instance Method Summary collapse

Methods inherited from RubyLLM::Contract::Prompt::Node

#==, #to_h

Constructor Details

#initialize(content) ⇒ RuleNode

Returns a new instance of RuleNode.



8
9
10
# File 'lib/ruby_llm/contract/prompt/nodes/rule_node.rb', line 8

def initialize(content)
  super(type: :rule, content: content)
end