/** * Base Provider Class (TypeScript version) * Provider基类(包含标准OpenAI处理) */ import { PipelineBaseModule } from '../modules/PipelineBaseModule'; import { OpenAIChatRequest } from './OpenAIInterface'; export interface ProviderCapabilities { streaming: boolean; tools: boolean; vision: boolean; jsonMode: boolean; } export interface ProviderConfig { name: string; endpoint?: string; supportedModels?: string[]; defaultModel?: string; metadata?: Record; enableTwoPhaseDebug?: boolean; debugBaseDirectory?: string; enableIOTracking?: boolean; maxConcurrentRequests?: number; requestTimeout?: number; } export interface ProviderInfo { name: string; endpoint: string | undefined; supportedModels: string[]; defaultModel: string | undefined; capabilities: ProviderCapabilities; type: 'provider' | 'scheduler' | 'tracker' | 'pipeline'; } export interface HealthCheckResult { status: 'healthy' | 'unhealthy'; provider: string; error?: string; timestamp: string; } export interface CompatibilityModule { mapRequest: (request: OpenAIChatRequest) => any; mapResponse: (response: any) => any; } export declare abstract class BaseProvider extends PipelineBaseModule { protected endpoint?: string; protected supportedModels: string[]; protected defaultModel?: string; constructor(config: ProviderConfig); protected twoPhaseDebugSystem: any | null; chat(openaiRequest: any, compatibility?: CompatibilityModule): Promise; streamChat(openaiRequest: any, compatibility?: CompatibilityModule): AsyncGenerator; abstract executeChat(providerRequest: any): Promise; abstract executeStreamChat(providerRequest: any): AsyncGenerator; protected standardizeResponse(providerResponse: any): any; getInfo(): any; getConfig(): any; getProviderInfo(): ProviderInfo; protected getCapabilities(): ProviderCapabilities; healthCheck(): Promise; } export default BaseProvider; //# sourceMappingURL=BaseProvider.d.ts.map