v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.5
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
constructor
setup
config
[async
Iterator]
next
return
throw
LangChain.js - v0.2.5
langchain-anthropic
langchain-azure-dynamic-sessions
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
upstash_ratelimit
chains/graph_qa/cypher
chat_models
Loading...
Generated using
TypeDoc