/** * Qwen3 Provider * Fetch-based wrapper for LM Studio OpenAI-compatible API * * Generic provider for any OpenAI-compatible local model endpoint */ export interface Signature { instructions: string; input: Record; output: Record; } export declare class Qwen3Provider { private endpoint; private model; private maxConcurrency; private requestQueue; private activeRequests; constructor(endpoint?: string, model?: string, maxConcurrency?: number); /** * Format signature into model prompt */ private formatPrompt; /** * Parse JSON response from model */ private parseResponse; /** * Make prediction using model */ predict(signature: Signature, input: Record, customInstructions?: string, temperature?: number, maxTokens?: number, schema?: Record): Promise>; /** * Execute queued requests with concurrency control */ private processQueue; /** * Queue a prediction request with concurrency control */ private queuedPredict; /** * Batch predictions with parallel execution (5x throughput) * Processes multiple predictions concurrently while respecting rate limits */ batchPredict(signature: Signature, inputs: Array>, customInstructions?: string, temperature?: number, maxTokens?: number): Promise>>; /** * Batch predictions with error recovery * Retries failed predictions up to maxRetries times */ batchPredictWithRetry(signature: Signature, inputs: Array>, customInstructions?: string, temperature?: number, maxTokens?: number, maxRetries?: number): Promise>>; /** * Health check for endpoint availability */ healthCheck(): Promise; } //# sourceMappingURL=qwen3-provider.d.ts.map