Class: RubyLLM::ToolCall
- Inherits:
-
Object
- Object
- RubyLLM::ToolCall
- Defined in:
- lib/ruby_llm/tool_call.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id:, name:, arguments: {}) ⇒ ToolCall
constructor
A new instance of ToolCall.
Constructor Details
#initialize(id:, name:, arguments: {}) ⇒ ToolCall
Returns a new instance of ToolCall.
7 8 9 10 11 |
# File 'lib/ruby_llm/tool_call.rb', line 7 def initialize(id:, name:, arguments: {}) @id = id @name = name @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
5 6 7 |
# File 'lib/ruby_llm/tool_call.rb', line 5 def arguments @arguments end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/ruby_llm/tool_call.rb', line 5 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/ruby_llm/tool_call.rb', line 5 def name @name end |