agenerate_with_last_element_mark#

async langchain_community.llms.tongyi.agenerate_with_last_element_mark(iterable: AsyncIterable[T]) AsyncIterator[Tuple[T, bool]][source]#

Generate elements from an async iterable, and a boolean indicating if it is the last element.

Parameters:

iterable (AsyncIterable[T])

Return type:

AsyncIterator[Tuple[T, bool]]