Class: Copilot::SessionLimitsConfig

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

Overview

Per-session AI-credit budget; set max_ai_credits to cap spend.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#max_ai_creditsObject

Returns the value of attribute max_ai_credits

Returns:

  • (Object)

    the current value of max_ai_credits



606
607
608
# File 'lib/copilot/types.rb', line 606

def max_ai_credits
  @max_ai_credits
end

Instance Method Details

#to_wireObject



607
608
609
# File 'lib/copilot/types.rb', line 607

def to_wire
  { maxAiCredits: max_ai_credits }.compact
end