Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/openai/lib/AssistantStream.ts>AssistantStream

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
class AssistantStream
import { AssistantStream } from "https://deno.land/x/openai@v4.45.0/lib/AssistantStream.ts";

Methods

protected
_createAssistantStream(
run: Runs,
threadId: string,
options?: Core.RequestOptions,
): Promise<Run>
protected
_createThreadAssistantStream(
thread: Threads,
options?: Core.RequestOptions,
): Promise<Run>
protected
_createToolAssistantStream(
run: Runs,
threadId: string,
runId: string,
options?: Core.RequestOptions,
): Promise<Run>
protected
_fromReadableStream(readableStream: ReadableStream, options?: Core.RequestOptions): Promise<Run>
currentRun(): Run | undefined
currentRunStepSnapshot(): Runs.RunStep | undefined
finalMessages(): Promise<Message[]>
finalRun(): Promise<Run>
finalRunSteps(): Promise<Runs.RunStep[]>

Static Methods

accumulateDelta(acc: Record<string, any>, delta: Record<string, any>): Record<string, any>
createAssistantStream(
threadId: string,
runs: Runs,
options?: RequestOptions,
)
createToolAssistantStream(
threadId: string,
runId: string,
runs: Runs,
options: RequestOptions | undefined,
)