Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

My AI agent's mood is three numbers and a 16-emotion table. Here's the math

说明与用途

使用PAD向量和OCC评估的AI代理情绪系统,更新并衰减情绪,影响语调。

问题

Design a lightweight, explainable mood system for an AI agent that updates its affective state based on events and decays over time.

结果

A functional, explainable mood model that modulates agent tone and can be extended to influence decision-making.

工作流

  • 1. Appraise event with OCC variables (desirability, praiseworthiness, agency).
  • 2. Scale emotion intensities by reactivity and neuroticism factors.
  • 3. Fold each emotion’s PAD signature into the mood vector, scaled by 0.5.
  • 4. Decay mood toward baseline each turn by 15%.
  • 5. Expose current mood and last emotion via /mood endpoint.

证据

PaulusAI has a persistent mood, and it's not a vibe prompt. It's a PAD vector (Pleasure, Arousal, Dominance), each in [-1, 1].

来源

Events are appraised with the OCC model (Ortony, Clore & Collins), which turns an event into emotions like joy, pride, fear, or gratitude.

来源

Each emotion adds its PAD signature to the mood, scaled by 0.5. For a task success, pleasure rises by roughly +0.2.

来源

Each turn, mood moves 15% of the way back toward a personality baseline, here about +0.04 pleasure.

来源

/mood shows the current vector and the last emotion felt, so you can see why the agent is in a given state.

来源

  • 记录日期: 2026-11-02T06:14:07.195Z