Interface: EmbeddingStream
@providerprotocol/ai / @providerprotocol/ai / EmbeddingStream
Interface: EmbeddingStream
Section titled “Interface: EmbeddingStream”Defined in: src/types/embedding.ts:160
Async iterable stream with final result accessor. Returned when embed() is called with { chunked: true }.
Extends
Section titled “Extends”AsyncIterable<EmbeddingProgress>
Properties
Section titled “Properties”result
Section titled “result”
readonlyresult:Promise<EmbeddingResult>
Defined in: src/types/embedding.ts:162
Promise resolving to complete result after iteration
Methods
Section titled “Methods”[asyncIterator]()
Section titled “[asyncIterator]()”[asyncIterator]():
AsyncIterator<EmbeddingProgress,any,any>
Defined in: node_modules/typescript/lib/lib.es2018.asynciterable.d.ts:38
Returns
Section titled “Returns”AsyncIterator<EmbeddingProgress, any, any>
Inherited from
Section titled “Inherited from”AsyncIterable.[asyncIterator]
abort()
Section titled “abort()”abort():
void
Defined in: src/types/embedding.ts:165
Abort the operation
Returns
Section titled “Returns”void