Class: Cadenya::Types::ObjectiveToolCallResult_ContentBlock_Text
- Inherits:
-
Object
- Object
- Cadenya::Types::ObjectiveToolCallResult_ContentBlock_Text
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, text: nil) ⇒ ObjectiveToolCallResult_ContentBlock_Text
constructor
A new instance of ObjectiveToolCallResult_ContentBlock_Text.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, text: nil) ⇒ ObjectiveToolCallResult_ContentBlock_Text
Returns a new instance of ObjectiveToolCallResult_ContentBlock_Text.
7809 7810 7811 7812 |
# File 'lib/cadenya/types.rb', line 7809 def initialize(type: nil, text: nil) @type = type @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
7807 7808 7809 |
# File 'lib/cadenya/types.rb', line 7807 def text @text end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7807 7808 7809 |
# File 'lib/cadenya/types.rb', line 7807 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
7814 7815 7816 7817 7818 7819 |
# File 'lib/cadenya/types.rb', line 7814 def self.from_json(data) new( type: data["type"], text: data["text"].nil? ? nil : Types::ObjectiveToolCallResult_TextBlock.from_json(data["text"]), ) end |