Class: Cadenya::Types::ModelSpec_Capability_MaxOutputTokens
- Inherits:
-
Object
- Object
- Cadenya::Types::ModelSpec_Capability_MaxOutputTokens
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#max_output_tokens ⇒ Object
readonly
Returns the value of attribute max_output_tokens.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, max_output_tokens: nil) ⇒ ModelSpec_Capability_MaxOutputTokens
constructor
A new instance of ModelSpec_Capability_MaxOutputTokens.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, max_output_tokens: nil) ⇒ ModelSpec_Capability_MaxOutputTokens
Returns a new instance of ModelSpec_Capability_MaxOutputTokens.
9463 9464 9465 9466 |
# File 'lib/cadenya/types.rb', line 9463 def initialize(type: nil, max_output_tokens: nil) @type = type @max_output_tokens = max_output_tokens end |
Instance Attribute Details
#max_output_tokens ⇒ Object (readonly)
Returns the value of attribute max_output_tokens.
9461 9462 9463 |
# File 'lib/cadenya/types.rb', line 9461 def max_output_tokens @max_output_tokens end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9461 9462 9463 |
# File 'lib/cadenya/types.rb', line 9461 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
9468 9469 9470 9471 9472 9473 |
# File 'lib/cadenya/types.rb', line 9468 def self.from_json(data) new( type: data["type"], max_output_tokens: data["maxOutputTokens"].nil? ? nil : Types::Capability_MaxOutputTokens.from_json(data["maxOutputTokens"]), ) end |