mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-20 14:42:28 +02:00
- StreamTransformer: aprocess/afinalize/afail + schedule() helper with on_error="log"|"raise". requires_async flag (plus override detection) makes sync stream() raise at registration rather than at first event. - StreamMux: apush/aclose/afail for the async dispatch path. aclose awaits all scheduled tasks across transformers before afinalize; afail cancels and awaits them before afail hooks. - StreamMux now takes transformers in __init__ and owns extensions / native_keys aggregation and conflict detection — register() is gone. - GraphRunStream / AsyncGraphRunStream read extensions and native keys off the mux directly; StreamingHandler._setup() inlined.