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



380
381
382
# File 'lib/copilot/types.rb', line 380

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



380
381
382
# File 'lib/copilot/types.rb', line 380

def buffer_exhaustion_threshold
  @buffer_exhaustion_threshold
end

#enabledObject

Returns the value of attribute enabled

Returns:

  • (Object)

    the current value of enabled



380
381
382
# File 'lib/copilot/types.rb', line 380

def enabled
  @enabled
end

Instance Method Details

#to_wireObject



384
385
386
387
388
389
390
# File 'lib/copilot/types.rb', line 384

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