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
implements BaseEvents
import { type AssistantStreamEvents } from "https://deno.land/x/openai@v4.61.1/lib/AssistantStream.ts";

Properties

run: (run: Run) => void
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
event: (event: AssistantStreamEvent) => void