generate_from_stream#
- langchain_core.language_models.chat_models.generate_from_stream(stream: Iterator[ChatGenerationChunk]) ChatResult [source]#
Generate from a stream.
- Parameters:
stream (Iterator[ChatGenerationChunk]) – Iterator of ChatGenerationChunk.
- Returns:
Chat result.
- Return type: