import { type ChatCompletionMessageParam, type ChatCompletionCreateParamsNonStreaming } from 'openai/resources/chat/completions'; import { type RunnableFunctions, type BaseFunctionsArgs, RunnableTools } from "./RunnableFunction.js"; import { AbstractChatCompletionRunner, AbstractChatCompletionRunnerEvents, RunnerOptions } from "./AbstractChatCompletionRunner.js"; import OpenAI from 'openai/index'; import { AutoParseableTool } from 'openai/lib/parser'; export interface ChatCompletionRunnerEvents extends AbstractChatCompletionRunnerEvents { content: (content: string) => void; } export type ChatCompletionFunctionRunnerParams = Omit & { functions: RunnableFunctions; }; export type ChatCompletionToolRunnerParams = Omit & { tools: RunnableTools | AutoParseableTool[]; }; export declare class ChatCompletionRunner extends AbstractChatCompletionRunner { /** @deprecated - please use `runTools` instead. */ static runFunctions(client: OpenAI, params: ChatCompletionFunctionRunnerParams, options?: RunnerOptions): ChatCompletionRunner; static runTools(client: OpenAI, params: ChatCompletionToolRunnerParams, options?: RunnerOptions): ChatCompletionRunner; _addMessage(this: ChatCompletionRunner, message: ChatCompletionMessageParam, emit?: boolean): void; } //# sourceMappingURL=ChatCompletionRunner.d.ts.map