Skip to content

Interface: EmbeddingStream

@providerprotocol/ai


@providerprotocol/ai / @providerprotocol/ai / EmbeddingStream

Defined in: src/types/embedding.ts:160

Async iterable stream with final result accessor. Returned when embed() is called with { chunked: true }.

readonly result: Promise<EmbeddingResult>

Defined in: src/types/embedding.ts:162

Promise resolving to complete result after iteration

[asyncIterator](): AsyncIterator<EmbeddingProgress, any, any>

Defined in: node_modules/typescript/lib/lib.es2018.asynciterable.d.ts:38

AsyncIterator<EmbeddingProgress, any, any>

AsyncIterable.[asyncIterator]


abort(): void

Defined in: src/types/embedding.ts:165

Abort the operation

void