module RubyLLM::ActiveRecord::ToolCallMethods
ToolCallMethods holds the instance methods that acts_as_tool_call mixes into a tool call model.
class ToolCall < ApplicationRecord acts_as_tool_call end
Public Instance Methods
Source
# File lib/ruby_llm/active_record/tool_call_methods.rb, line 26 def tool_error_message payload_error_message(arguments) end
Returns the error message recorded in the tool callβs arguments payload, or nil when there is none. The views created by the tool generator use it to render failed tool calls.