Module: Phronomy::Agent::Concerns::BeforeCompletion
- Included in:
- Base
- Defined in:
- lib/phronomy/agent/concerns/before_completion.rb
Overview
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
-
#before_completion ⇒ #call?
Instance-level before_completion hook.
Class Method Summary collapse
Instance Attribute Details
#before_completion ⇒ #call?
Instance-level before_completion hook. When set, takes precedence over the class-level hook for this specific agent instance only.
46 47 48 |
# File 'lib/phronomy/agent/concerns/before_completion.rb', line 46 def before_completion @before_completion end |
Class Method Details
.included(base) ⇒ Object
12 13 14 |
# File 'lib/phronomy/agent/concerns/before_completion.rb', line 12 def self.included(base) base.extend(ClassMethods) end |