import { z } from 'zod'; import { OpenAI } from 'openai'; type StructuredCompletionParams = { systemPrompt: string; userPrompt: string; responseFormat: { type: 'json_schema'; schema: z.ZodSchema; name: string; } | { type: 'json_object'; }; model?: string; temperature?: number; sessionId?: string | null; openAIClient?: OpenAI; }; /** * Creates a structured completion using OpenAI with consistent configuration * across all tools. */ export declare function createStructuredCompletion(params: StructuredCompletionParams): Promise; type ToolsCompletionParams = { systemPrompt: string; userPrompt: string; tools: any[]; model?: string; temperature?: number; toolChoice?: 'auto' | 'none' | { type: 'function'; function: { name: string; }; }; openAIClient?: OpenAI; }; type GenericMessage = { role: string; content?: string | any; tool_call_id?: string; [key: string]: any; }; type ToolsCompletionResult = { toolMessages: GenericMessage[]; assistantMessages: string[]; combinedMessage: string; isError: boolean; }; /** * Creates a tools completion using OpenAI with streaming support. * Returns captured messages and a combined message string ready for use. */ export declare function createToolsCompletion(params: ToolsCompletionParams): Promise; export {}; //# sourceMappingURL=chat-completion-utils.d.ts.map