v0.3
v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js
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
config?
setup
signal?
Methods
[async
Dispose]
[async
Iterator]
next
return
throw
Constructors
constructor
new
Async
Generator
With
Setup
<
S
,
T
,
TReturn
,
TNext
>
(
params
)
:
AsyncGeneratorWithSetup
<
S
,
T
,
TReturn
,
TNext
>
Type Parameters
S
=
unknown
T
=
unknown
TReturn
=
unknown
TNext
=
unknown
Parameters
params
:
{
config
?:
unknown
;
generator
:
AsyncGenerator
<
T
,
any
,
unknown
>
;
signal
?:
AbortSignal
;
startSetup
?:
(
(
)
=>
Promise
<
S
>
)
;
}
Optional
config
?:
unknown
generator
:
AsyncGenerator
<
T
,
any
,
unknown
>
Optional
signal
?:
AbortSignal
Optional
start
Setup
?:
(
(
)
=>
Promise
<
S
>
)
(
)
:
Promise
<
S
>
Returns
Promise
<
S
>
Returns
AsyncGeneratorWithSetup
<
S
,
T
,
TReturn
,
TNext
>
Properties
Optional
config
config
?:
unknown
setup
setup
:
Promise
<
S
>
Optional
signal
signal
?:
AbortSignal
Methods
[async
Dispose]
[async
Dispose]
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
[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
Optional
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
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
config
setup
signal
Methods
[async
Dispose]
[async
Iterator]
next
return
throw
LangChain.js
Loading...