Class: Copilot::InfiniteSessionConfig
- Inherits:
-
Struct
- Object
- Struct
- Copilot::InfiniteSessionConfig
- Defined in:
- lib/copilot/types.rb
Overview
Infinite session configuration for automatic context compaction and workspace persistence.
Instance Attribute Summary collapse
-
#background_compaction_threshold ⇒ Object
Returns the value of attribute background_compaction_threshold.
-
#buffer_exhaustion_threshold ⇒ Object
Returns the value of attribute buffer_exhaustion_threshold.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
Instance Method Summary collapse
Instance Attribute Details
#background_compaction_threshold ⇒ Object
Returns the value of attribute background_compaction_threshold
252 253 254 |
# File 'lib/copilot/types.rb', line 252 def background_compaction_threshold @background_compaction_threshold end |
#buffer_exhaustion_threshold ⇒ Object
Returns the value of attribute buffer_exhaustion_threshold
252 253 254 |
# File 'lib/copilot/types.rb', line 252 def buffer_exhaustion_threshold @buffer_exhaustion_threshold end |
#enabled ⇒ Object
Returns the value of attribute enabled
252 253 254 |
# File 'lib/copilot/types.rb', line 252 def enabled @enabled end |
Instance Method Details
#to_wire ⇒ Object
256 257 258 259 260 261 262 |
# File 'lib/copilot/types.rb', line 256 def to_wire h = {} h[:enabled] = enabled unless enabled.nil? h[:backgroundCompactionThreshold] = background_compaction_threshold if background_compaction_threshold h[:bufferExhaustionThreshold] = buffer_exhaustion_threshold if buffer_exhaustion_threshold h end |