langchain_core.runnables.utils
.is_async_generator¶
- langchain_core.runnables.utils.is_async_generator(func: Any) TypeGuard[Callable[[...], AsyncIterator]] [source]¶
Check if a function is an async generator.
- Parameters
func (Any) – The function to check.
- Returns
- True if the function is
an async generator, False otherwise.
- Return type
TypeGuard[Callable[…, AsyncIterator]