Class: Cadenya::Types::ObjectiveEventData_ToolResult
- Inherits:
-
Object
- Object
- Cadenya::Types::ObjectiveEventData_ToolResult
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#tool_result ⇒ Object
readonly
Returns the value of attribute tool_result.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, tool_result: nil) ⇒ ObjectiveEventData_ToolResult
constructor
A new instance of ObjectiveEventData_ToolResult.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, tool_result: nil) ⇒ ObjectiveEventData_ToolResult
Returns a new instance of ObjectiveEventData_ToolResult.
8711 8712 8713 8714 |
# File 'lib/cadenya/types.rb', line 8711 def initialize(type: nil, tool_result: nil) @type = type @tool_result = tool_result end |
Instance Attribute Details
#tool_result ⇒ Object (readonly)
Returns the value of attribute tool_result.
8709 8710 8711 |
# File 'lib/cadenya/types.rb', line 8709 def tool_result @tool_result end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8709 8710 8711 |
# File 'lib/cadenya/types.rb', line 8709 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
8716 8717 8718 8719 8720 8721 |
# File 'lib/cadenya/types.rb', line 8716 def self.from_json(data) new( type: data["type"], tool_result: data["toolResult"].nil? ? nil : Types::ToolResult.from_json(data["toolResult"]), ) end |