import { AbstractChatCompletionRunner } from "https://deno.land/x/openai@v4.69.0/lib/AbstractChatCompletionRunner.ts";
Type Parameters
EventTypes extends AbstractChatCompletionRunnerEvents
Properties
protected
_chatCompletions: ParsedChatCompletion<ParsedT>[]messages: ChatCompletionMessageParam[]
Methods
protected
_addChatCompletion(this: AbstractChatCompletionRunner<AbstractChatCompletionRunnerEvents, ParsedT>, chatCompletion: ParsedChatCompletion<ParsedT>): ParsedChatCompletion<ParsedT>protected
_addMessage(message: ChatCompletionMessageParam,
emit?,
protected
_createChatCompletion(): Promise<ParsedChatCompletion<ParsedT>>protected
_emitFinal(this: AbstractChatCompletionRunner<AbstractChatCompletionRunnerEvents, ParsedT>)protected
_runChatCompletion(): Promise<ChatCompletion>protected
_runFunctions<FunctionsArgs extends BaseFunctionsArgs>(client: OpenAI,
params: ChatCompletionFunctionRunnerParams<FunctionsArgs> | ChatCompletionStreamingFunctionRunnerParams<FunctionsArgs>,
options?: RunnerOptions,
protected
_runTools<FunctionsArgs extends BaseFunctionsArgs>(client: OpenAI,
params: ChatCompletionToolRunnerParams<FunctionsArgs> | ChatCompletionStreamingToolRunnerParams<FunctionsArgs>,
options?: RunnerOptions,
finalChatCompletion(): Promise<ParsedChatCompletion<ParsedT>>
finalContent(): Promise<string | null>
finalFunctionCall(): Promise<ChatCompletionMessage.FunctionCall | undefined>
finalFunctionCallResult(): Promise<string | undefined>
finalMessage(): Promise<ChatCompletionMessage>
totalUsage(): Promise<CompletionUsage>