Class: Copilot::SectionOverride
- Inherits:
-
Struct
- Object
- Struct
- Copilot::SectionOverride
- Defined in:
- lib/copilot/types.rb
Overview
Override operation for a single system prompt section.
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#content ⇒ Object
Returns the value of attribute content.
Instance Method Summary collapse
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action
118 119 120 |
# File 'lib/copilot/types.rb', line 118 def action @action end |
#content ⇒ Object
Returns the value of attribute content
118 119 120 |
# File 'lib/copilot/types.rb', line 118 def content @content end |
Instance Method Details
#to_h ⇒ Object
119 120 121 122 123 |
# File 'lib/copilot/types.rb', line 119 def to_h h = { action: action } h[:content] = content if content h end |