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