calm-artist-7206
08/22/2025, 12:11 PMcreate_runtime , then picks up the event stream and registers your listener, then starts the actual run run_controller with that runtime instance 🤔
The mechanism we currently have works, but it’s too complicated to set up initially!
Understand the mechanism. Then write a function we can plug into run_controller that allows the client developer to just write the implementation of a listener, and it will:
• subscribe the registered listener to the stream
• it will use the runtime created in run_controller, if one hasn’t been passed to it
• consider if we need an abstract interface for the developer to just implement. Maybe DX is better? In that case, do it. The interface should probably live in the events module.
Document it in the developer documentation (create an event_stream.mdx alongside backend.mdx and the like). Make sure you find and keep the docs patterns/position/sections. Make sure you include a real-world example of use!narrow-agent-26548
08/22/2025, 12:11 PMnarrow-agent-26548
08/22/2025, 12:31 PM