v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.9
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?
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
;
startSetup
?:
(
(
)
=>
Promise
<
S
>
)
;
}
generator
:
AsyncGenerator
<
T
,
any
,
unknown
>
Optional
config
?:
unknown
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
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
Methods
[async
Iterator]
next
return
throw
LangChain.js - v0.2.9
Loading...