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.
-
#transform ⇒ Object
Returns the value of attribute transform.
Instance Method Summary collapse
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action
246 247 248 |
# File 'lib/copilot/types.rb', line 246 def action @action end |
#content ⇒ Object
Returns the value of attribute content
246 247 248 |
# File 'lib/copilot/types.rb', line 246 def content @content end |
#transform ⇒ Object
Returns the value of attribute transform
246 247 248 |
# File 'lib/copilot/types.rb', line 246 def transform @transform end |
Instance Method Details
#to_h ⇒ Object
247 248 249 250 251 |
# File 'lib/copilot/types.rb', line 247 def to_h h = { action: transform ? SectionOverrideAction::TRANSFORM : action } h[:content] = content if content h end |