langchain_community.llms.tongyi.agenerate_with_last_element_mark

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

从异步可迭代对象中生成元素,并返回一个布尔值,指示是否为最后一个元素。

Parameters

iterable (AsyncIterable[T]) –

Return type

AsyncIterator[Tuple[T, bool]]