Class: RubyLLM::Agents::ToolExecution

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/ruby_llm/agents/tool_execution.rb

Overview

Tracks individual tool calls within an agent execution.

Created in real-time as each tool runs (INSERT on start, UPDATE on complete), enabling live dashboard views and queryable tool-level analytics.

Examples:

Querying tool executions

execution.tool_executions.where(status: "error")
ToolExecution.where(tool_name: "bash").where("duration_ms > ?", 10_000)

Constant Summary collapse

VALID_STATUSES =
%w[running success error timed_out cancelled].freeze