v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.13
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
config?
signal?
Methods
[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
:
{
generator
:
AsyncGenerator
<
T
,
any
,
unknown
>
;
config
?:
unknown
;
signal
?:
AbortSignal
;
startSetup
?:
(
(
)
=>
Promise
<
S
>
)
;
}
generator
:
AsyncGenerator
<
T
,
any
,
unknown
>
Optional
config
?:
unknown
Optional
signal
?:
AbortSignal
Optional
start
Setup
?:
(
(
)
=>
Promise
<
S
>
)
(
)
:
Promise
<
S
>
Returns
Promise
<
S
>
Returns
AsyncGeneratorWithSetup
<
S
,
T
,
TReturn
,
TNext
>
Properties
setup
setup
:
Promise
<
S
>
Optional
config
config
?:
unknown
Optional
signal
signal
?:
AbortSignal
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
Constructors
constructor
Properties
setup
config
signal
Methods
[async
Iterator]
next
return
throw
LangChain.js - v0.2.13
Loading...