import { AbstractAssistantStreamRunner } from "https://deno.land/x/openai@v4.52.2/lib/AbstractAssistantStreamRunner.ts";
Type Parameters
optional
Events extends CustomEvents<any> = AbstractAssistantRunnerEventsMethods
protected
_connected()protected
_createAssistantStream(): Promise<Run>protected
_createThreadAssistantStream(): Promise<Run>protected
_createToolAssistantStream(run: Runs,
threadId: string,
runId: string,
params: RunSubmitToolOutputsParamsBase,
options?: Core.RequestOptions,
protected
_run(executor: () => Promise<any>)protected
_runAssistantStream(): Promise<Run>protected
_runToolAssistantStream(threadId: string,
runId: string,
runs: Runs,
params: RunSubmitToolOutputsParamsBase,
options?: Core.RequestOptions,
protected
_threadAssistantStream(): Promise<Run>abort()
done(): Promise<void>
emitted<Event extends keyof Events>(event: Event): Promise<EventParameters<Events, Event> extends [infer Param] ? Param : EventParameters<Events, Event> extends [] ? void : EventParameters<Events, Event>>
This is similar to .once()
, but returns a Promise that resolves the next time
the event is triggered, instead of calling a listener callback.
Removes the specified listener from the listener array for the event. off() will remove, at most, one instance of a listener from the listener array. If any single listener has been added multiple times to the listener array for the specified event, then off() must be called multiple times to remove each instance.