Class: Copilot::ModelInfo
- Inherits:
-
Struct
- Object
- Struct
- Copilot::ModelInfo
- Defined in:
- lib/copilot/types.rb
Overview
Information about an available model.
Instance Attribute Summary collapse
-
#billing ⇒ Object
Returns the value of attribute billing.
-
#capabilities ⇒ Object
Returns the value of attribute capabilities.
-
#default_reasoning_effort ⇒ Object
Returns the value of attribute default_reasoning_effort.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#policy ⇒ Object
Returns the value of attribute policy.
-
#supported_reasoning_efforts ⇒ Object
Returns the value of attribute supported_reasoning_efforts.
Class Method Summary collapse
Instance Attribute Details
#billing ⇒ Object
Returns the value of attribute billing
425 426 427 |
# File 'lib/copilot/types.rb', line 425 def billing @billing end |
#capabilities ⇒ Object
Returns the value of attribute capabilities
425 426 427 |
# File 'lib/copilot/types.rb', line 425 def capabilities @capabilities end |
#default_reasoning_effort ⇒ Object
Returns the value of attribute default_reasoning_effort
425 426 427 |
# File 'lib/copilot/types.rb', line 425 def default_reasoning_effort @default_reasoning_effort end |
#id ⇒ Object
Returns the value of attribute id
425 426 427 |
# File 'lib/copilot/types.rb', line 425 def id @id end |
#name ⇒ Object
Returns the value of attribute name
425 426 427 |
# File 'lib/copilot/types.rb', line 425 def name @name end |
#policy ⇒ Object
Returns the value of attribute policy
425 426 427 |
# File 'lib/copilot/types.rb', line 425 def policy @policy end |
#supported_reasoning_efforts ⇒ Object
Returns the value of attribute supported_reasoning_efforts
425 426 427 |
# File 'lib/copilot/types.rb', line 425 def supported_reasoning_efforts @supported_reasoning_efforts end |
Class Method Details
.from_hash(h) ⇒ Object
430 431 432 433 434 435 436 437 438 439 440 |
# File 'lib/copilot/types.rb', line 430 def self.from_hash(h) new( id: h["id"], name: h["name"], capabilities: ModelCapabilities.from_hash(h["capabilities"] || {}), policy: h["policy"] ? ModelPolicy.from_hash(h["policy"]) : nil, billing: h["billing"] ? ModelBilling.from_hash(h["billing"]) : nil, supported_reasoning_efforts: h["supportedReasoningEfforts"], default_reasoning_effort: h["defaultReasoningEffort"] ) end |