Interface LLMUtilityAIConfig

Base configuration for any IUtilityAI implementation.

interface LLMUtilityAIConfig {
    utilityId?: string;
    defaultLanguage?: string;
    resourcePath?: string;
    llmProviderManager: AIModelProviderManager;
    defaultModelId?: string;
    defaultProviderId?: string;
    summarizationModelId?: string;
    classificationModelId?: string;
    keywordModelId?: string;
    sentimentModelId?: string;
    languageDetectionModelId?: string;
    jsonFixerModelId?: string;
    semanticSimilarityModelId?: string;
    textNormalizationModelId?: string;
    readabilityEstimationModelId?: string;
}

Hierarchy (view full)

Properties

utilityId?: string

Unique identifier for this specific utility AI service instance.

defaultLanguage?: string

Default language for processing if not specified in method options (e.g., 'en', 'es'). BCP-47 format preferred.

resourcePath?: string

Path to a directory containing resource files (e.g., stop word lists, lexicons, trained models for statistical utilities).

llmProviderManager: AIModelProviderManager
defaultModelId?: string
defaultProviderId?: string
summarizationModelId?: string
classificationModelId?: string
keywordModelId?: string
sentimentModelId?: string
languageDetectionModelId?: string
jsonFixerModelId?: string

The model a direct parseJsonSafe() call repairs with when it names no llmModelIdForFix. The task methods (classifyText, analyzeSentiment and the others) repair a reply on the model and provider the call ran on.

semanticSimilarityModelId?: string
textNormalizationModelId?: string

The model normalizeText() calls, in any language; defaultModelId unless given.

readabilityEstimationModelId?: string