Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/lib/AssistantStream.ts>AssistantStreamEvents

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

Properties

messageCreated: (message: Message) => void
messageDelta: (message: MessageDelta, snapshot: Message) => void
messageDone: (message: Message) => void
runStepCreated: (runStep: RunStep) => void
runStepDelta: (delta: RunStepDelta, snapshot: Runs.RunStep) => void
runStepDone: (runStep: Runs.RunStep, snapshot: Runs.RunStep) => void
toolCallCreated: (toolCall: ToolCall) => void
toolCallDelta: (delta: ToolCallDelta, snapshot: ToolCall) => void
toolCallDone: (toolCall: ToolCall) => void
textCreated: (content: Text) => void
textDelta: (delta: TextDelta, snapshot: Text) => void
textDone: (content: Text, snapshot: Message) => void
imageFileDone: (content: ImageFile, snapshot: Message) => void
end: () => void
event: (event: AssistantStreamEvent) => void