Class: Copilot::ModelCapabilities
- Inherits:
-
Struct
- Object
- Struct
- Copilot::ModelCapabilities
- Defined in:
- lib/copilot/types.rb
Overview
Model capabilities and limits.
Instance Attribute Summary collapse
-
#limits ⇒ Object
Returns the value of attribute limits.
-
#supports ⇒ Object
Returns the value of attribute supports.
Class Method Summary collapse
Instance Attribute Details
#limits ⇒ Object
Returns the value of attribute limits
399 400 401 |
# File 'lib/copilot/types.rb', line 399 def limits @limits end |
#supports ⇒ Object
Returns the value of attribute 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 |