/** * Centralized Model Configuration * * k0ntext enforces strict model usage for all AI operations. * This ensures consistent behavior, cost control, and quality. * * @version 3.1.0 */ /** * Model identifiers for different AI operations * * All intelligent operations use google/gemini-3-flash-preview for: * - Fast response times * - Cost-effectiveness * - Excellent analysis capabilities * - Large context window */ export declare const K0NTEXT_MODELS: { /** Primary model for all intelligent operations (drift detection, workflow discovery, smart merge, cleanup, fact check) */ readonly DRIFT_DETECTION: "google/gemini-3-flash-preview"; readonly WORKFLOW_DISCOVERY: "google/gemini-3-flash-preview"; readonly SMART_MERGE: "google/gemini-3-flash-preview"; readonly CLEANUP: "google/gemini-3-flash-preview"; readonly FACT_CHECK: "google/gemini-3-flash-preview"; /** Model for semantic embeddings (high-quality, small dimension) */ readonly EMBEDDING: "openai/text-embedding-3-small"; }; /** * Type of model operation */ export type ModelType = keyof typeof K0NTEXT_MODELS; /** * Legacy model name for backward compatibility * @deprecated Use K0NTEXT_MODELS.DRIFT_DETECTION instead */ export declare const DEFAULT_CHAT_MODEL: "google/gemini-3-flash-preview"; /** * Legacy embedding model for backward compatibility * @deprecated Use K0NTEXT_MODELS.EMBEDDING instead */ export declare const DEFAULT_EMBEDDING_MODEL: "openai/text-embedding-3-small"; /** * Get model for a specific operation * * @param operation - The type of operation * @returns The model identifier for that operation */ export declare function getModelFor(operation: ModelType): string; /** * Validate that a model name is allowed * * @param model - The model name to validate * @returns True if the model is in the allowed list */ export declare function isValidModel(model: string): boolean; /** * Get all allowed model identifiers * * @returns Array of all allowed model names */ export declare function getAllowedModels(): readonly string[]; /** * Configuration for model behavior */ export declare const MODEL_CONFIG: { /** Maximum tokens for drift detection analysis */ readonly DRIFT_MAX_TOKENS: 8192; /** Maximum tokens for workflow discovery */ readonly WORKFLOW_MAX_TOKENS: 4096; /** Maximum tokens for smart merge operations */ readonly MERGE_MAX_TOKENS: 6144; /** Temperature for analysis tasks (lower = more deterministic) */ readonly ANALYSIS_TEMPERATURE: 0.2; /** Temperature for creative tasks */ readonly CREATIVE_TEMPERATURE: 0.7; /** Maximum retry count for API calls */ readonly MAX_RETRIES: 3; /** Base retry delay in milliseconds */ readonly BASE_RETRY_DELAY: 1000; /** Embedding dimension for text-embedding-3-small */ readonly EMBEDDING_DIMENSION: 1536; /** Minimum request interval for rate limiting (ms) */ readonly MIN_REQUEST_INTERVAL: 100; /** Request timeout (ms) */ readonly REQUEST_TIMEOUT: 30000; }; /** * Model category for grouping similar operations */ export type ModelCategory = 'chat' | 'embedding'; /** * Get the category of a model operation * * @param operation - The type of operation * @returns The model category ('chat' or 'embedding') */ export declare function getModelCategory(operation: ModelType): ModelCategory; /** * Get the primary chat model for intelligent operations * * This is the default model used for most AI-powered features. * * @returns The primary chat model identifier */ export declare function getPrimaryChatModel(): string; /** * Get the embedding model * * @returns The embedding model identifier */ export declare function getEmbeddingModel(): string; //# sourceMappingURL=models.d.ts.map