generate_with_last_element_mark#
- langchain_community.llms.tongyi.generate_with_last_element_mark(iterable: Iterable[T]) Iterator[Tuple[T, bool]] [source]#
Generate elements from an iterable, and a boolean indicating if it is the last element.
- Parameters:
iterable (Iterable[T]) –
- Return type:
Iterator[Tuple[T, bool]]