Files
langchain/libs/core/tests
Nick Hollon df861bb226 fix async stream-events calls through RunnableBinding and langgraph graph
- Use _astream_events_v3 helper (not astream_events(version="v3")) when
  calling through a RunnableBinding — the binding's astream_events is an
  async generator and cannot be awaited directly for v3.
- Revert langchain_v1 agent tests back to agent.stream_v2 / astream_v2:
  these call langgraph CompiledStateGraph.stream_v2, a graph-level API
  unrelated to BaseChatModel.stream_v2 and not supported via
  stream_events(version="v3") in the currently installed langgraph.
2026-04-30 15:07:27 -04:00
..