Class: Cadenya::Types::SetToolCallContentRequest_TextBlock
- Inherits:
-
Object
- Object
- Cadenya::Types::SetToolCallContentRequest_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) ⇒ SetToolCallContentRequest_TextBlock
constructor
A new instance of SetToolCallContentRequest_TextBlock.
- #to_h ⇒ Object
Constructor Details
#initialize(text: nil) ⇒ SetToolCallContentRequest_TextBlock
Returns a new instance of SetToolCallContentRequest_TextBlock.
5176 5177 5178 |
# File 'lib/cadenya/types.rb', line 5176 def initialize(text: nil) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
5174 5175 5176 |
# File 'lib/cadenya/types.rb', line 5174 def text @text end |
Class Method Details
.from_json(data) ⇒ Object
5180 5181 5182 5183 5184 |
# File 'lib/cadenya/types.rb', line 5180 def self.from_json(data) new( text: data["text"], ) end |