import * as Core from 'openai/core'; import { APIResource } from 'openai/resource'; import { ChatCompletionRunner, ChatCompletionFunctionRunnerParams } from 'openai/lib/ChatCompletionRunner'; export { ChatCompletionRunner, ChatCompletionFunctionRunnerParams } from 'openai/lib/ChatCompletionRunner'; import { ChatCompletionStreamingRunner, ChatCompletionStreamingFunctionRunnerParams } from 'openai/lib/ChatCompletionStreamingRunner'; export { ChatCompletionStreamingRunner, ChatCompletionStreamingFunctionRunnerParams, } from 'openai/lib/ChatCompletionStreamingRunner'; import { BaseFunctionsArgs } from 'openai/lib/RunnableFunction'; export { RunnableFunction, RunnableFunctions, RunnableFunctionWithParse, RunnableFunctionWithoutParse, ParsingFunction, ParsingToolFunction, } from 'openai/lib/RunnableFunction'; import { ChatCompletionToolRunnerParams } from 'openai/lib/ChatCompletionRunner'; export { ChatCompletionToolRunnerParams } from 'openai/lib/ChatCompletionRunner'; import { ChatCompletionStreamingToolRunnerParams } from 'openai/lib/ChatCompletionStreamingRunner'; export { ChatCompletionStreamingToolRunnerParams } from 'openai/lib/ChatCompletionStreamingRunner'; import { ChatCompletionStream, type ChatCompletionStreamParams } from 'openai/lib/ChatCompletionStream'; export { ChatCompletionStream, type ChatCompletionStreamParams } from 'openai/lib/ChatCompletionStream'; export declare class Completions extends APIResource { /** * @deprecated - use `runTools` instead. */ runFunctions(body: ChatCompletionFunctionRunnerParams, options?: Core.RequestOptions): ChatCompletionRunner; runFunctions(body: ChatCompletionStreamingFunctionRunnerParams, options?: Core.RequestOptions): ChatCompletionStreamingRunner; /** * A convenience helper for using tool calls with the /chat/completions endpoint * which automatically calls the JavaScript functions you provide and sends their * results back to the /chat/completions endpoint, looping as long as the model * requests function calls. * * For more details and examples, see * [the docs](https://github.com/openai/openai-node#automated-function-calls) */ runTools(body: ChatCompletionToolRunnerParams, options?: Core.RequestOptions): ChatCompletionRunner; runTools(body: ChatCompletionStreamingToolRunnerParams, options?: Core.RequestOptions): ChatCompletionStreamingRunner; /** * Creates a chat completion stream */ stream(body: ChatCompletionStreamParams, options?: Core.RequestOptions): ChatCompletionStream; } //# sourceMappingURL=completions.d.ts.map