Module: RubyLLM::Agents::Trackable Private

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Mixin that registers a result object with the active Tracker.

Included in every result class so that RubyLLM::Agents.track can collect results automatically.

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



12
13
14
# File 'lib/ruby_llm/agents/results/trackable.rb', line 12

def self.included(base)
  base.attr_reader :agent_class_name unless base.method_defined?(:agent_class_name)
end