Master switch: enables/disables sentiment analysis on user input. When false (default), no sentiment analysis runs and no events are emitted. Turn_interval metaprompts (like gmi_self_trait_adjustment) still work regardless.
false
Optional methodSentiment analysis method.
'lexicon_based'
Optional modelModel ID for LLM-based or trained_classifier methods. Falls back to persona defaultModelId if not specified.
Optional providerProvider ID for LLM-based methods. Falls back to persona defaultProviderId if not specified.
Optional historyNumber of recent turns to keep in sentiment history (sliding window). Higher = better pattern detection, slightly more memory.
10
Optional frustrationSentiment score threshold below which frustration is detected. Score range: -1 (very negative) to 1 (very positive).
-0.3
Optional satisfactionSentiment score threshold above which satisfaction is detected.
0.3
Optional consecutiveNumber of consecutive turns with same sentiment pattern before triggering event. Prevents over-triggering on single outlier messages.
2
Optional presetsWhich preset metaprompts to enable. Options:
Only listed presets will be merged. Omit to enable none (use custom metaPrompts instead).
[] (no presets auto-merged)
Configuration for sentiment-aware metaprompt tracking. Controls whether the GMI analyzes user sentiment and triggers event-based metaprompts in response to detected emotional states.
Interface
SentimentTrackingConfig
Example
Example