Module: ActiveAgent::Streaming
- Extended by:
- ActiveSupport::Concern
- Included in:
- Base
- Defined in:
- lib/active_agent/concerns/streaming.rb
Overview
Provides streaming callback support for agent classes.
Callbacks can be registered for three points in the streaming lifecycle:
-
on_stream_open - invoked before the first chunk
-
on_stream - invoked for every chunk received
-
on_stream_close - invoked after the final chunk
Callbacks automatically receive a StreamChunk parameter if they accept arguments.
Defined Under Namespace
Classes: StreamChunk