class RubyLLM::ToolCall
Represents a function call from an AI model to a Tool.
Attributes
Public Class Methods
# File lib/ruby_llm/tool_call.rb, line 9 def initialize(id:, name:, arguments: {}, thought_signature: nil) @id = id @name = name @arguments = arguments @thought_signature = thought_signature end
Public Instance Methods
Source
# File lib/ruby_llm/tool_call.rb, line 16 def to_h { id: @id, name: @name, arguments: @arguments, thought_signature: @thought_signature }.compact end