Class: Copilot::InfiniteSessionConfig

Inherits:
Struct
  • Object
show all
Defined in:
lib/copilot/types.rb

Overview

Infinite session configuration for automatic context compaction and workspace persistence.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#background_compaction_thresholdObject

Returns the value of attribute background_compaction_threshold

Returns:

  • (Object)

    the current value of background_compaction_threshold



252
253
254
# File 'lib/copilot/types.rb', line 252

def background_compaction_threshold
  @background_compaction_threshold
end

#buffer_exhaustion_thresholdObject

Returns the value of attribute buffer_exhaustion_threshold

Returns:

  • (Object)

    the current value of buffer_exhaustion_threshold



252
253
254
# File 'lib/copilot/types.rb', line 252

def buffer_exhaustion_threshold
  @buffer_exhaustion_threshold
end

#enabledObject

Returns the value of attribute enabled

Returns:

  • (Object)

    the current value of enabled



252
253
254
# File 'lib/copilot/types.rb', line 252

def enabled
  @enabled
end

Instance Method Details

#to_wireObject



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