Class: Copilot::SystemMessageAppendConfig
- Inherits:
-
Struct
- Object
- Struct
- Copilot::SystemMessageAppendConfig
- Defined in:
- lib/copilot/types.rb
Overview
System message in append mode (default).
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#mode ⇒ Object
Returns the value of attribute mode.
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content
79 80 81 |
# File 'lib/copilot/types.rb', line 79 def content @content end |
#mode ⇒ Object
Returns the value of attribute mode
79 80 81 |
# File 'lib/copilot/types.rb', line 79 def mode @mode end |
Instance Method Details
#to_h ⇒ Object
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 |