Module: ActiveAgent::Observers

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/active_agent/concerns/observers.rb

Overview

Provides observer and interceptor functionality for monitoring and modifying the prompt generation lifecycle.

Observers are notified when prompts are generated and can react to events without modifying the prompt itself. Common use cases include logging, analytics, auditing, and notifications.

Interceptors are called before prompts are sent to AI providers and can modify or prevent the prompt from being sent. Common use cases include content filtering, prompt modification, access control, and rate limiting.

Defined Under Namespace

Modules: ClassMethods