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
423 424 425 |
# File 'lib/copilot/types.rb', line 423 def billing @billing end |
#capabilities ⇒ Object
Returns the value of attribute capabilities
423 424 425 |
# File 'lib/copilot/types.rb', line 423 def capabilities @capabilities end |
#default_reasoning_effort ⇒ Object
Returns the value of attribute default_reasoning_effort
423 424 425 |
# File 'lib/copilot/types.rb', line 423 def default_reasoning_effort @default_reasoning_effort end |
#id ⇒ Object
Returns the value of attribute id
423 424 425 |
# File 'lib/copilot/types.rb', line 423 def id @id end |
#name ⇒ Object
Returns the value of attribute name
423 424 425 |
# File 'lib/copilot/types.rb', line 423 def name @name end |
#policy ⇒ Object
Returns the value of attribute policy
423 424 425 |
# File 'lib/copilot/types.rb', line 423 def policy @policy end |
#supported_reasoning_efforts ⇒ Object
Returns the value of attribute supported_reasoning_efforts
423 424 425 |
# File 'lib/copilot/types.rb', line 423 def supported_reasoning_efforts @supported_reasoning_efforts end |
Class Method Details
.from_hash(h) ⇒ Object
428 429 430 431 432 433 434 435 436 437 438 |
# File 'lib/copilot/types.rb', line 428 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 |