/** * OpenAI LLM provider for the Agentis framework */ import { GenerateOptions, GenerateResult, LLMProviderInterface } from './provider-interface'; /** * Configuration for the OpenAI provider */ export interface OpenAIProviderConfig { model: string; apiKey?: string; maxRetries?: number; organization?: string; } /** * Provider for interacting with OpenAI models */ export declare class OpenAIProvider implements LLMProviderInterface { private client; private config; private logger; /** * Creates a new OpenAI provider instance * * @param config - Configuration for the provider */ constructor(config: OpenAIProviderConfig); /** * Generates a response from the OpenAI LLM * * @param options - Generation options * @returns Promise resolving to the generation result */ generateResponse(options: GenerateOptions): Promise; /** * Streams a response from the OpenAI LLM * * @param messageParams - Parameters for the OpenAI API call * @param onPartialResponse - Callback function for partial responses * @returns Promise resolving to the complete generation result */ private streamResponse; /** * Processes a complete response from the OpenAI LLM * * @param response - The response from OpenAI * @returns The processed generation result */ private processResponse; /** * Updates the provider configuration * * @param config - New configuration options */ updateConfig(config: Partial): void; }