LemonAi. Providers. StreamingHelper
(lemon_ai v0.1.0)
View Source
Shared helper for the identical stream/3 setup pattern across all AI providers.
Each provider's stream/3 follows the same structure:
- Start an EventStream with owner monitoring and timeout
- Spawn a supervised task that calls the provider's do_stream logic
- Attach the task to the stream for lifecycle management
Summary
Functions
Sets up the standard streaming infrastructure and spawns the provider's streaming function under supervision.