Class: Copilot::ModelCapabilities

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

Overview

Model capabilities and limits.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#limitsObject

Returns the value of attribute limits

Returns:

  • (Object)

    the current value of limits



399
400
401
# File 'lib/copilot/types.rb', line 399

def limits
  @limits
end

#supportsObject

Returns the value of attribute supports

Returns:

  • (Object)

    the current value of supports



399
400
401
# File 'lib/copilot/types.rb', line 399

def supports
  @supports
end

Class Method Details

.from_hash(h) ⇒ Object



400
401
402
403
404
405
# File 'lib/copilot/types.rb', line 400

def self.from_hash(h)
  new(
    supports: ModelSupports.from_hash(h["supports"] || {}),
    limits: ModelLimits.from_hash(h["limits"] || {})
  )
end