@molroo-ai/sdk
    Preparing search index...

    Interface AgentResponse

    Response from the emotion engine for a single entity interaction.

    Contains the computed emotion, optional mood/somatic/narrative data, memory episodes, social updates, and state change indicators.

    interface AgentResponse {
        action?: string;
        emotion: {
            discrete: { intensity: number; primary: string; secondary?: string };
            vad: VAD;
        };
        goalChanges?: { achieved: string[]; blocked: string[] };
        maskExposure?: { integrity: number; state: string };
        memoryEpisode?: Episode;
        mood?: {
            arousal: "calm" | "moderate" | "activated";
            dominance: "submissive" | "balanced" | "dominant";
            vad: VAD;
            valence: "negative" | "neutral" | "positive";
        };
        narrative?: { agency: number; coherence: number; tone: number };
        reflectionPrompt?: ReflectionPrompt;
        socialUpdates?: SocialUpdate[];
        somatic?: string[];
        stageTransition?: boolean;
        text?: string;
    }
    Index

    Properties

    action?: string
    emotion: {
        discrete: { intensity: number; primary: string; secondary?: string };
        vad: VAD;
    }
    goalChanges?: { achieved: string[]; blocked: string[] }

    Goals that changed status this turn.

    maskExposure?: { integrity: number; state: string }

    Mask integrity drop — persona facade is cracking.

    memoryEpisode?: Episode
    mood?: {
        arousal: "calm" | "moderate" | "activated";
        dominance: "submissive" | "balanced" | "dominant";
        vad: VAD;
        valence: "negative" | "neutral" | "positive";
    }
    narrative?: { agency: number; coherence: number; tone: number }
    reflectionPrompt?: ReflectionPrompt
    socialUpdates?: SocialUpdate[]
    somatic?: string[]
    stageTransition?: boolean

    Stage transition occurred this turn.

    text?: string