v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.13
LangChain.js
langchain-core/utils/stream
IterableReadableStream
Class IterableReadableStream<T>
Type Parameters
T
Hierarchy
ReadableStream
<
T
>
IterableReadableStream
Implements
IterableReadableStreamInterface
<
T
>
Index
Constructors
constructor
Properties
reader
Methods
[async
Iterator]
ensure
Reader
next
return
throw
from
Async
Generator
from
Readable
Stream
Constructors
constructor
new
Iterable
Readable
Stream
<
T
>
(
underlyingSource
,
strategy
?
)
:
IterableReadableStream
<
T
>
Type Parameters
T
Parameters
underlyingSource
:
UnderlyingDefaultSource
<
T
>
Optional
strategy
:
QueuingStrategy
<
T
>
Returns
IterableReadableStream
<
T
>
new
Iterable
Readable
Stream
<
T
>
(
underlyingSource
?
,
strategy
?
)
:
IterableReadableStream
<
T
>
Type Parameters
T
Parameters
Optional
underlyingSource
:
UnderlyingSource
<
T
>
Optional
strategy
:
QueuingStrategy
<
T
>
Returns
IterableReadableStream
<
T
>
Properties
reader
reader
:
ReadableStreamDefaultReader
<
T
>
Methods
[async
Iterator]
[async
Iterator]
(
)
:
IterableReadableStream
<
T
>
Returns
IterableReadableStream
<
T
>
ensure
Reader
ensure
Reader
(
)
:
void
Returns
void
next
next
(
)
:
Promise
<
IteratorResult
<
T
,
any
>
>
Returns
Promise
<
IteratorResult
<
T
,
any
>
>
return
return
(
)
:
Promise
<
IteratorResult
<
T
,
any
>
>
Returns
Promise
<
IteratorResult
<
T
,
any
>
>
throw
throw
(
e
)
:
Promise
<
IteratorResult
<
T
,
any
>
>
Parameters
e
:
any
Returns
Promise
<
IteratorResult
<
T
,
any
>
>
Static
from
Async
Generator
from
Async
Generator
<
T
>
(
generator
)
:
IterableReadableStream
<
T
>
Type Parameters
T
Parameters
generator
:
AsyncGenerator
<
T
,
any
,
unknown
>
Returns
IterableReadableStream
<
T
>
Static
from
Readable
Stream
from
Readable
Stream
<
T
>
(
stream
)
:
IterableReadableStream
<
T
>
Type Parameters
T
Parameters
stream
:
ReadableStream
<
T
>
Returns
IterableReadableStream
<
T
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
reader
Methods
[async
Iterator]
ensure
Reader
next
return
throw
from
Async
Generator
from
Readable
Stream
LangChain.js - v0.2.13
Loading...