Class: LLMs::ConversationToolResult
- Inherits:
-
Object
- Object
- LLMs::ConversationToolResult
- Defined in:
- lib/llms/conversation_tool_result.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#is_error ⇒ Object
readonly
Returns the value of attribute is_error.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
-
#tool_call_id ⇒ Object
readonly
Returns the value of attribute tool_call_id.
-
#tool_call_type ⇒ Object
readonly
Returns the value of attribute tool_call_type.
Instance Method Summary collapse
-
#initialize(index, tool_call_id, tool_call_type, name, results, is_error) ⇒ ConversationToolResult
constructor
A new instance of ConversationToolResult.
Constructor Details
#initialize(index, tool_call_id, tool_call_type, name, results, is_error) ⇒ ConversationToolResult
Returns a new instance of ConversationToolResult.
5 6 7 8 9 10 11 12 13 |
# File 'lib/llms/conversation_tool_result.rb', line 5 def initialize(index, tool_call_id, tool_call_type, name, results, is_error) raise "index is nil" if index.nil? @index = index @tool_call_id = tool_call_id @tool_call_type = tool_call_type @name = name @results = results @is_error = is_error end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
3 4 5 |
# File 'lib/llms/conversation_tool_result.rb', line 3 def index @index end |
#is_error ⇒ Object (readonly)
Returns the value of attribute is_error.
3 4 5 |
# File 'lib/llms/conversation_tool_result.rb', line 3 def is_error @is_error end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/llms/conversation_tool_result.rb', line 3 def name @name end |
#results ⇒ Object (readonly)
Returns the value of attribute results.
3 4 5 |
# File 'lib/llms/conversation_tool_result.rb', line 3 def results @results end |
#tool_call_id ⇒ Object (readonly)
Returns the value of attribute tool_call_id.
3 4 5 |
# File 'lib/llms/conversation_tool_result.rb', line 3 def tool_call_id @tool_call_id end |
#tool_call_type ⇒ Object (readonly)
Returns the value of attribute tool_call_type.
3 4 5 |
# File 'lib/llms/conversation_tool_result.rb', line 3 def tool_call_type @tool_call_type end |