Class: Cadenya::Types::ToolError
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolError
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#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, message: nil) ⇒ ToolError
constructor
A new instance of ToolError.
- #to_h ⇒ Object
Constructor Details
#initialize(tool_call_id: nil, message: nil) ⇒ ToolError
Returns a new instance of ToolError.
5731 5732 5733 5734 |
# File 'lib/cadenya/types.rb', line 5731 def initialize(tool_call_id: nil, message: nil) @tool_call_id = tool_call_id @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
5729 5730 5731 |
# File 'lib/cadenya/types.rb', line 5729 def @message end |
#tool_call_id ⇒ Object (readonly)
Returns the value of attribute tool_call_id.
5729 5730 5731 |
# File 'lib/cadenya/types.rb', line 5729 def tool_call_id @tool_call_id end |
Class Method Details
.from_json(data) ⇒ Object
5736 5737 5738 5739 5740 5741 |
# File 'lib/cadenya/types.rb', line 5736 def self.from_json(data) new( tool_call_id: data["toolCallId"], message: data["message"], ) end |