class RubyLLM::ToolCall

A ToolCall is a request from an AI model to invoke a Tool with specific arguments. Instances appear in Message#tool_calls and are yielded to tool callbacks such as Chat#before_tool_call.

chat.before_tool_call do |tool_call|
  puts "Calling tool: #{tool_call.name}"
  puts "Arguments: #{tool_call.arguments}"
end