Class: Cadenya::Types::ApproveToolCallRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::ApproveToolCallRequest
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#objective_id ⇒ Object
readonly
Returns the value of attribute objective_id.
-
#tool_call_id ⇒ Object
readonly
Returns the value of attribute tool_call_id.
-
#workspace_id ⇒ Object
readonly
Returns the value of attribute workspace_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(workspace_id: nil, objective_id: nil, tool_call_id: nil) ⇒ ApproveToolCallRequest
constructor
A new instance of ApproveToolCallRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, objective_id: nil, tool_call_id: nil) ⇒ ApproveToolCallRequest
Returns a new instance of ApproveToolCallRequest.
841 842 843 844 845 |
# File 'lib/cadenya/types.rb', line 841 def initialize(workspace_id: nil, objective_id: nil, tool_call_id: nil) @workspace_id = workspace_id @objective_id = objective_id @tool_call_id = tool_call_id end |
Instance Attribute Details
#objective_id ⇒ Object (readonly)
Returns the value of attribute objective_id.
839 840 841 |
# File 'lib/cadenya/types.rb', line 839 def objective_id @objective_id end |
#tool_call_id ⇒ Object (readonly)
Returns the value of attribute tool_call_id.
839 840 841 |
# File 'lib/cadenya/types.rb', line 839 def tool_call_id @tool_call_id end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
839 840 841 |
# File 'lib/cadenya/types.rb', line 839 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
847 848 849 850 851 852 853 |
# File 'lib/cadenya/types.rb', line 847 def self.from_json(data) new( workspace_id: data["workspaceId"], objective_id: data["objectiveId"], tool_call_id: data["toolCallId"], ) end |