test_astream_events_v3(
self,
model: BaseChatModel,
) -> NoneTest that await model.astream_events("Hello", version="v3") works.
Async counterpart to test_stream_events_v3. Exercises the
AsyncChatModelStream path end-to-end: the background producer task,
replay-buffer-backed event iteration, and the awaitable output
projection.
First, debug
langchain_tests.integration_tests.chat_models.ChatModelIntegrationTests.test_astream.
If test_astream passes but this does not, inspect the raised
lifecycle violation; it identifies the event index and the rule
broken.