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
205 206 207 |
# File 'lib/copilot/types.rb', line 205 def content @content end |
#mode ⇒ Object
Returns the value of attribute mode
205 206 207 |
# File 'lib/copilot/types.rb', line 205 def mode @mode end |
Instance Method Details
#to_h ⇒ Object
206 207 208 209 210 211 |
# File 'lib/copilot/types.rb', line 206 def to_h h = {} h[:mode] = mode || "append" h[:content] = content if content h end |