Module: RubyLLM::Agents::Trackable Private
- Included in:
- BackgroundRemovalResult, EmbeddingResult, ImageAnalysisResult, ImageEditResult, ImageGenerationResult, ImagePipelineResult, ImageTransformResult, ImageUpscaleResult, ImageVariationResult, SpeechResult, TranscriptionResult
- Defined in:
- lib/ruby_llm/agents/results/trackable.rb
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
- .included(base) ⇒ Object private
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 |