Class: Cadenya::Types::ToolApproved
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolApproved
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#tool_call_id ⇒ Object
readonly
Returns the value of attribute tool_call_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tool_call_id: nil) ⇒ ToolApproved
constructor
A new instance of ToolApproved.
- #to_h ⇒ Object
Constructor Details
#initialize(tool_call_id: nil) ⇒ ToolApproved
Returns a new instance of ToolApproved.
5656 5657 5658 |
# File 'lib/cadenya/types.rb', line 5656 def initialize(tool_call_id: nil) @tool_call_id = tool_call_id end |
Instance Attribute Details
#tool_call_id ⇒ Object (readonly)
Returns the value of attribute tool_call_id.
5654 5655 5656 |
# File 'lib/cadenya/types.rb', line 5654 def tool_call_id @tool_call_id end |
Class Method Details
.from_json(data) ⇒ Object
5660 5661 5662 5663 5664 |
# File 'lib/cadenya/types.rb', line 5660 def self.from_json(data) new( tool_call_id: data["toolCallId"], ) end |