Class: Cadenya::Types::ObjectiveToolCallResult_TextBlock
- Inherits:
-
Object
- Object
- Cadenya::Types::ObjectiveToolCallResult_TextBlock
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(text: nil) ⇒ ObjectiveToolCallResult_TextBlock
constructor
A new instance of ObjectiveToolCallResult_TextBlock.
- #to_h ⇒ Object
Constructor Details
#initialize(text: nil) ⇒ ObjectiveToolCallResult_TextBlock
Returns a new instance of ObjectiveToolCallResult_TextBlock.
4285 4286 4287 |
# File 'lib/cadenya/types.rb', line 4285 def initialize(text: nil) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
4283 4284 4285 |
# File 'lib/cadenya/types.rb', line 4283 def text @text end |
Class Method Details
.from_json(data) ⇒ Object
4289 4290 4291 4292 4293 |
# File 'lib/cadenya/types.rb', line 4289 def self.from_json(data) new( text: data["text"], ) end |