Class: RubyLLM::Contract::Prompt::Nodes::UserNode

Inherits:
RubyLLM::Contract::Prompt::Node show all
Defined in:
lib/ruby_llm/contract/prompt/nodes/user_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) ⇒ UserNode

Returns a new instance of UserNode.



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

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