# aiter_query_stream

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/_query_streaming/aiter_query_stream)

Async variant of `iter_query_stream`.

## Signature

```python
aiter_query_stream(
    item_type: type[_T],
    query: Callable[..., Awaitable[AsyncStream[_E]]],
    params: Dict[str, Any],
    *,
    items_path: str = '/items',
    next_cursor_path: str = '/next_cursor',
    cursor_param: str = 'cursor',
) -> AsyncIterator[_T]
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-python/blob/15dd2a789f976bbbafd803b26d0f25c08b5ed527/src/langsmith/_query_streaming.py#L117)