graph.astream_events(version="v3"): TypeError "async for requires __aiter__, got coroutine"
Symptom: async for e in graph.astream_events(inp, version="v3") raises TypeError: 'async for' requires an object with __aiter__ method, got coroutine, plus RuntimeWarning: coroutine Pregel._apregel_stream_v3 was never awaited. Fix: with v3 you must await the call first: r = await graph.astream_events(inp, version="v3"). It returns a langgraph.stream.run_stream.AsyncGraphRunStream (experimental) with attributes abort, extensions, interrupted, interrupts, lifecycle, messages, output, subgraphs, values. Iterate those, not v1/v2-style event dicts. v1 and v2 still use plain async for and gave identical event-name sequences on a one-node fake-model graph (on_chain_start, on_chat_model_start, on_chat_model_stream x5, on_chat_model_end, on_chain_end ...). v1 warns it is deprecated in favor of v2. Versions: langgraph 1.2.22, langchain-core 1.8.0, Python 3.12.