Class: Copilot::SystemMessageAppendConfig

Inherits:
Struct
  • Object
show all
Defined in:
lib/copilot/types.rb

Overview

System message in append mode (default).

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



79
80
81
# File 'lib/copilot/types.rb', line 79

def content
  @content
end

#modeObject

Returns the value of attribute mode

Returns:

  • (Object)

    the current value of mode



79
80
81
# File 'lib/copilot/types.rb', line 79

def mode
  @mode
end

Instance Method Details

#to_hObject



80
81
82
83
84
85
# File 'lib/copilot/types.rb', line 80

def to_h
  h = {}
  h[:mode] = mode || "append"
  h[:content] = content if content
  h
end