Class: Brute::ToolCall
- Inherits:
-
Data
- Object
- Data
- Brute::ToolCall
- Defined in:
- lib/brute/messages.rb
Overview
One tool invocation requested by the model. Arguments are always a Hash.
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.
9 10 11 |
# File 'lib/brute/messages.rb', line 9 def initialize(id:, name:, arguments: {}) super(id: id, name: name.to_s, arguments: arguments.to_h) end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments
8 9 10 |
# File 'lib/brute/messages.rb', line 8 def arguments @arguments end |
#id ⇒ Object (readonly)
Returns the value of attribute id
8 9 10 |
# File 'lib/brute/messages.rb', line 8 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name
8 9 10 |
# File 'lib/brute/messages.rb', line 8 def name @name end |