Preparing search index...
The search index is not available
LangChain.js - v0.1.37
LangChain.js
langchain-core/utils/stream
AsyncGeneratorWithSetup
Class AsyncGeneratorWithSetup<S, T, TReturn, TNext>
Type Parameters
S
=
unknown
T
=
unknown
TReturn
=
unknown
TNext
=
unknown
Implements
AsyncGenerator
<
T
,
TReturn
,
TNext
>
Index
Constructors
constructor
Properties
setup
Methods
[async
Iterator]
next
return
throw
Constructors
constructor
new
Async
Generator
With
Setup
<
S
,
T
,
TReturn
,
TNext
>
(
generator
,
startSetup
?
)
:
AsyncGeneratorWithSetup
<
S
,
T
,
TReturn
,
TNext
>
Type Parameters
S
=
unknown
T
=
unknown
TReturn
=
unknown
TNext
=
unknown
Parameters
generator
:
AsyncGenerator
<
T
,
any
,
unknown
>
Optional
startSetup
:
(
(
)
=>
Promise
<
S
>
)
(
)
:
Promise
<
S
>
Returns
Promise
<
S
>
Returns
AsyncGeneratorWithSetup
<
S
,
T
,
TReturn
,
TNext
>
Properties
setup
setup
:
Promise
<
S
>
Methods
[async
Iterator]
[async
Iterator]
(
)
:
AsyncGeneratorWithSetup
<
S
,
T
,
TReturn
,
TNext
>
Returns
AsyncGeneratorWithSetup
<
S
,
T
,
TReturn
,
TNext
>
next
next
(
...
args
)
:
Promise
<
IteratorResult
<
T
,
any
>
>
Parameters
Rest
...
args
:
[
]
|
[
TNext
]
Returns
Promise
<
IteratorResult
<
T
,
any
>
>
return
return
(
value
)
:
Promise
<
IteratorResult
<
T
,
any
>
>
Parameters
value
:
TReturn
|
PromiseLike
<
TReturn
>
Returns
Promise
<
IteratorResult
<
T
,
any
>
>
throw
throw
(
e
)
:
Promise
<
IteratorResult
<
T
,
any
>
>
Parameters
e
:
Error
Returns
Promise
<
IteratorResult
<
T
,
any
>
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
constructor
setup
[async
Iterator]
next
return
throw
LangChain.js - v0.1.37
langchain-anthropic
langchain-azure-openai
langchain-cloudflare
langchain-cohere
langchain-community
agents/toolkits
aws_sfn
base
connery
caches
cloudflare_kv
ioredis
momento
upstash_redis
callbacks/handlers
llmonitor
lunary
chat_models
alibaba_tongyi
baiduwenxin
bedrock
Loading...
Generated using
TypeDoc