Module: Phronomy::Agent::Concerns::BeforeCompletion Private

Included in:
Base
Defined in:
lib/phronomy/agent/concerns/before_completion.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.

Adds before_completion hook support to an agent.

Included in Base. Hooks are executed just before every LLM call (global → class → instance order) and may inject or override LLM parameters such as temperature or model.

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#before_completion#call?

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.

Instance-level before_completion hook. When set, takes precedence over the class-level hook for this specific agent instance only.

Returns:

  • (#call, nil)


49
50
51
# File 'lib/phronomy/agent/concerns/before_completion.rb', line 49

def before_completion
  @before_completion
end

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.



13
14
15
# File 'lib/phronomy/agent/concerns/before_completion.rb', line 13

def self.included(base)
  base.extend(ClassMethods)
end