Class: Cadenya::Types::ToolDenied
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolDenied
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#memo ⇒ Object
readonly
Returns the value of attribute memo.
-
#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, memo: nil) ⇒ ToolDenied
constructor
A new instance of ToolDenied.
- #to_h ⇒ Object
Constructor Details
#initialize(tool_call_id: nil, memo: nil) ⇒ ToolDenied
Returns a new instance of ToolDenied.
5708 5709 5710 5711 |
# File 'lib/cadenya/types.rb', line 5708 def initialize(tool_call_id: nil, memo: nil) @tool_call_id = tool_call_id @memo = memo end |
Instance Attribute Details
#memo ⇒ Object (readonly)
Returns the value of attribute memo.
5706 5707 5708 |
# File 'lib/cadenya/types.rb', line 5706 def memo @memo end |
#tool_call_id ⇒ Object (readonly)
Returns the value of attribute tool_call_id.
5706 5707 5708 |
# File 'lib/cadenya/types.rb', line 5706 def tool_call_id @tool_call_id end |
Class Method Details
.from_json(data) ⇒ Object
5713 5714 5715 5716 5717 5718 |
# File 'lib/cadenya/types.rb', line 5713 def self.from_json(data) new( tool_call_id: data["toolCallId"], memo: data["memo"], ) end |