UNPKG

ai-pp3

Version:

CLI tool combining multimodal AI analysis with RawTherapee's engine to generate optimized PP3 profiles for RAW photography

33 lines (32 loc) 1.48 kB
import { LanguageModelV1 } from "ai"; import { GenerationResult } from "../types.js"; /** * Generates AI response based on image and text */ export declare function generateAIResponse(aiProvider: LanguageModelV1, extractedText: string, imageData: Buffer, maxRetries: number, providerName: string, verbose?: boolean): Promise<string>; /** * Processes AI generation for PP3 content */ export declare function processAIGeneration(previewPath: string, basePP3Path: string, sections: string[], providerName: string, visionModel: string | string[], prompt: string | undefined, preset: string, maxRetries: number, verbose: boolean): Promise<string>; /** * Prepares image contents for evaluation */ export declare function prepareImageContents(generationResults: GenerationResult[], verbose: boolean): Promise<({ type: "text"; text: string; } | { type: "image"; image: Buffer; })[]>; /** * Parses the best generation index from AI response */ export declare function parseBestGenerationIndex(responseText: string, generationResults: GenerationResult[]): number; /** * Evaluates multiple generations and selects the best one * If multiple models are specified, it will try each one sequentially until successful */ export declare function evaluateGenerations(generationResults: GenerationResult[], providerName: string, visionModel: string | string[], maxRetries: number, verbose: boolean): Promise<{ bestIndex: number; evaluationReason: string; }>;