Class: Cadenya::Types::ToolApprovalRequested
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolApprovalRequested
- 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) ⇒ ToolApprovalRequested
constructor
A new instance of ToolApprovalRequested.
- #to_h ⇒ Object
Constructor Details
#initialize(tool_call_id: nil) ⇒ ToolApprovalRequested
Returns a new instance of ToolApprovalRequested.
5636 5637 5638 |
# File 'lib/cadenya/types.rb', line 5636 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.
5634 5635 5636 |
# File 'lib/cadenya/types.rb', line 5634 def tool_call_id @tool_call_id end |
Class Method Details
.from_json(data) ⇒ Object
5640 5641 5642 5643 5644 |
# File 'lib/cadenya/types.rb', line 5640 def self.from_json(data) new( tool_call_id: data["toolCallId"], ) end |