LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmith_query_streamingaiter_query_stream
Function●Since v0.14

aiter_query_stream

Async variant of iter_query_stream.

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