Properties default Template Name default Template Name : string
token Counting token Counting : { strategy : "estimated" | "precise" | "hybrid" ; estimationModel ?: "gpt-3.5-turbo" | "gpt-4" | "claude-3" | "generic" ; }
Type declaration strategy : "estimated" | "precise" | "hybrid" Optional estimation Model ?: "gpt-3.5-turbo" | "gpt-4" | "claude-3" | "generic" history Management history Management : { defaultMaxMessages : number ; maxTokensForHistory : number ; summarizationTriggerRatio : number ; preserveImportantMessages : boolean ; }
Type declaration default Max Messages : number max Tokens For History : number summarization Trigger Ratio : number preserve Important Messages : boolean context Management context Management : { maxRAGContextTokens : number ; summarizationQualityTier : "balanced" | "fast" | "high_quality" ; preserveSourceAttributionInSummary : boolean ; minContextRelevanceThreshold ?: number ; }
Type declaration maxRAGContext Tokens : number summarization Quality Tier : "balanced" | "fast" | "high_quality" preserve Source Attribution In Summary : boolean Optional min Context Relevance Threshold ?: number contextual Element Selection contextual Element Selection : { maxElementsPerType : Partial < Record < ContextualElementType , number > > ; defaultMaxElementsPerType : number ; priorityResolutionStrategy : "highest_first" | "weighted_random" | "persona_preference" ; conflictResolutionStrategy : "skip_conflicting" | "merge_compatible" | "error_on_conflict" ; } Type declaration max Elements Per Type : Partial < Record < ContextualElementType , number > > default Max Elements Per Type : number priority Resolution Strategy : "highest_first" | "weighted_random" | "persona_preference" conflict Resolution Strategy : "skip_conflicting" | "merge_compatible" | "error_on_conflict" performance performance : { enableCaching : boolean ; cacheTimeoutSeconds : number ; maxCacheSizeBytes ?: number ; }
Type declaration enable Caching : boolean cache Timeout Seconds : number Optional max Cache Size Bytes ?: number Optional debugging debugging ?: { logConstructionSteps ?: boolean ; includeDebugMetadataInResult ?: boolean ; logSelectedContextualElements ?: boolean ; }
Type declaration Optional log Construction Steps ?: boolean Optional include Debug Metadata In Result ?: boolean Optional log Selected Contextual Elements ?: boolean Optional tool Schema Manifest tool Schema Manifest ?: Record < string , { enabledToolIds ?: string [] ; disabledToolIds ?: string [] ; modelOverrides ?: Record < string , string [] > ; } >
Type declaration Optional enabled Tool Ids ?: string [] Optional disabled Tool Ids ?: string [] Optional model Overrides ?: Record < string , string [] >
Configuration options for the PromptEngine's behavior, optimization strategies, and integration with other services like IUtilityAI.
Interface
PromptEngineConfig