Skip to main content

Function: buildEmotionalContext()

buildEmotionalContext(currentMood, gmiMood, contentSentiment?): EmotionalContext

Defined in: packages/agentos/src/memory/encoding/EncodingModel.ts:145

Create the EmotionalContext snapshot for a memory trace. Blends content sentiment with current mood (70/30 split).

Parameters

currentMood

PADState

Current PAD state from MoodEngine.

gmiMood

string

Current GMI mood enum string.

contentSentiment?

number = 0

Estimated sentiment of the content (-1..1). Defaults to 0.

Returns

EmotionalContext