humanda5
error state
ba4c3a1
# portfolio/npc_social_network/npc/emotion_config.py
# ๊ฐ์ • ์ดˆ๊ธฐ ์ƒํƒœ ๋ฐ decay ์„ค์ •
# ๊ณ ์ฐจ์› ๊ฐ์ • ์ƒํƒœ ์ •์˜
# ๊ท ํ˜• ์žกํžŒ ๋ณตํ•ฉ ๊ฐ์ • ๋ชจ๋ธ ์ •์˜๋ฅผ ์œ„ํ•ด GoEmotions ๋ฐ”ํƒ•์œผ๋กœ ์„ค๊ณ„ (ComplexEmotions์ด๋ผ ๋ช…๋ช…)
EMOTION_LIST = [
# Core Emotions (๊ธฐ๋ณธ ๊ฐ์ •)
# ๊ธฐ์จ, ์Šฌํ””, ๋ถ„๋…ธ, ๊ณตํฌ, ํ˜์˜ค,
# ๋†€๋žŒ, ์ค‘๋ฆฝ
"joy", "sadness", "anger", "fear", "disgust",
"surprise", "neutral",
# Social Emotions (์‚ฌํšŒ์  ๊ฐ์ •)
# ๊ฐ์‚ฌ, ์ˆ˜์น˜์‹ฌ, ์ฃ„์ฑ…๊ฐ, ์ž๋ถ€์‹ฌ, ์งˆํˆฌ, ์—ฐ๋ฏผ/๋™์ •,
# ์‚ฌ๋ž‘/์• ์ •, ์กด๊ฒฝ/๊ฐํƒ„, ๊ณต๊ฐ, ๊ฒฝ์™ธ์‹ฌ, ์• ์ฐฉ, ์œ„๋กœ ์ถ”๊ตฌ
"gratitude", "shame", "guilt", "pride", "jealousy", "compassion",
"love", "admiration", "empathy", "awe", "attachment", "comfort",
# Cognitive States (์ธ์ง€์  ์ƒํƒœ)
# ๊ธฐ๋Œ€, ํ˜ธ๊ธฐ์‹ฌ, ํ˜ผ๋ž€, ํฅ๋ฏธ, ๋ชฐ์ž…
# ์ง€๋ฃจํ•จ, ์•ˆ๋„, ๋ถˆ์•ˆ/๊ธด์žฅ, ํ‰์˜จ, ํšŒ์˜
"anticipation", "curiosity", "confusion", "interest", "engagement",
"boredom", "relief", "anxiety", "calm", "skepticism",
# Complex Emotions (๋ณตํ•ฉ ๊ฐ์ •)
# ํ–ฅ์ˆ˜, ๋‹ฌ์ฝค์Œ‰์‹ธ๋ฆ„ํ•จ, ๋‚จ์˜ ๋ถˆํ–‰์—์„œ ๋А๋ผ๋Š” ํ–‰๋ณต, ํฌ๋ง, ๋ถ„๊ฐœ
# ๊ธฐ๋Œ€ ์†์˜ ๊ธฐ์จ, ํ›„ํšŒ, ๋ฐ˜์ถ”, ์•ˆ์ •๊ฐ
"nostalgia", "bittersweet", "schadenfreude", "hope", "resentment",
"anticipatory_joy", "regret", "rumination", "groundedness",
]
# ๊ฐ์ • : ์นดํ…Œ๊ณ ๋ฆฌ ๋งต
EMOTION_CATEGORY_MAP = {
# Core
"joy": "core",
"sadness": "core",
"anger": "core",
"fear": "core",
"disgust": "core",
"surprise": "core",
"neutral": "core",
# Social
"gratitude": "social",
"shame": "social",
"guilt": "social",
"pride": "social",
"jealousy": "social",
"compassion": "social",
"love": "social",
"admiration": "social",
"empathy": "social",
"awe": "social",
"attachment": "social",
"comfort": "social",
# Cognitive
"anticipation": "cognitive",
"curiosity": "cognitive",
"confusion": "cognitive",
"interest": "cognitive",
"engagement": "cognitive",
"boredom": "cognitive",
"relief": "cognitive",
"anxiety": "cognitive",
"calm": "cognitive",
"skepticism": "cognitive",
# Complex
"nostalgia": "complex",
"bittersweet": "complex",
"schadenfreude": "complex",
"hope": "complex",
"resentment": "complex",
"anticipatory_joy": "complex",
"regret": "complex",
"rumination": "complex",
"groundedness": "complex",
}
# ๊ฐ์ •๋ณ„ ํšŒ๋ณต ์†๋„ (ms ๋‹จ์œ„๊ฐ€ ์•„๋‹Œ ๋‹จ์œ„๋‹น ๊ฐ์†Œ ์†๋„)
EMOTION_DECAY_RATE = {
# Core (๊ธฐ๋ณธ ๊ฐ์ •)
"joy": 0.6, # ๊ธฐ์จ
"sadness": 0.3, # ์Šฌํ””
"anger": 0.4, # ๋ถ„๋…ธ
"fear": 0.4, # ๊ณตํฌ
"disgust": 0.5, # ํ˜์˜ค
"surprise": 0.8, # ๋†€๋žŒ
"neutral": 1.2, # ์ค‘๋ฆฝ
# Social (์‚ฌํšŒ์  ๊ฐ์ •)
"gratitude": 0.6, # ๊ฐ์‚ฌ
"shame": 0.3, # ์ˆ˜์น˜์‹ฌ
"guilt": 0.3, # ์ฃ„์ฑ…๊ฐ
"pride": 0.6, # ์ž๋ถ€์‹ฌ
"jealousy": 0.4, # ์งˆํˆฌ
"compassion": 0.7, # ์—ฐ๋ฏผ/๋™์ •
"love": 0.2, # ์‚ฌ๋ž‘/์• ์ •
"admiration": 0.7, # ์กด๊ฒฝ/๊ฐํƒ„
"empathy": 0.7, # ๊ณต๊ฐ
"awe": 0.8, # ๊ฒฝ์™ธ์‹ฌ
"attachment": 0.2, # ์• ์ฐฉ
"comfort": 0.6, # ์œ„๋กœ ์ถ”๊ตฌ
# Cognitive (์ธ์ง€์  ์ƒํƒœ)
"anticipation": 0.6, # ๊ธฐ๋Œ€
"curiosity": 0.8, # ํ˜ธ๊ธฐ์‹ฌ
"confusion": 0.5, # ํ˜ผ๋ž€
"interest": 0.8, # ํฅ๋ฏธ
"engagement": 0.7, # ๋ชฐ์ž…
"boredom": 0.4, # ์ง€๋ฃจํ•จ
"relief": 0.8, # ์•ˆ๋„
"anxiety": 0.5, # ๋ถˆ์•ˆ/๊ธด์žฅ
"calm": 0.7, # ํ‰์˜จ
"skepticism": 0.5, # ํšŒ์˜
# Complex (๋ณตํ•ฉ ๊ฐ์ •)
"nostalgia": 0.2, # ํ–ฅ์ˆ˜
"bittersweet": 0.3, # ๋‹ฌ์ฝค์Œ‰์‹ธ๋ฆ„ํ•จ
"schadenfreude": 0.5, # ๋‚จ์˜ ๋ถˆํ–‰์—์„œ ๋А๋ผ๋Š” ๊ธฐ์จ
"hope": 0.6, # ํฌ๋ง
"resentment": 0.4, # ๋ถ„๊ฐœ
"anticipatory_joy": 0.6, # ๊ธฐ๋Œ€ ์†์˜ ๊ธฐ์จ
"regret": 0.3, # ํ›„ํšŒ
"rumination": 0.3, # ๋ฐ˜์ถ”
"groundedness": 0.8 # ์•ˆ์ •๊ฐ
}
# ๊ฐœ์„ฑ ํ…œํ”Œ๋ฆฟ(0~1 ๋ฒ”์œ„)
PERSONALITY_TEMPLATE = {
"affect_bias": 1.0, # Core emotion ์˜ํ–ฅ
"social_bias": 1.0, # Social emotion ์˜ํ–ฅ
"cognitive_bias": 1.0, # Cognitive state ์˜ํ–ฅ
"complex_bias": 1.0, # Complex emotion ์˜ํ–ฅ
"sensitive": 1.0, # ์ „์ฒด ๊ฐ์ • ๋ฐ˜์‘ ๊ฐ•๋„
"stoic": 0.0 # ์ „์ฒด ๊ฐ์ • ๋‘”ํ™” ์ •๋„ (๊ฐ์‡  ๊ฐ€์†๋„์— ์˜ํ–ฅ)
}
# ๊ด€๊ณ„์— ๊ธ/๋ถ€์ • ์˜ํ–ฅ์œผ๋กœ ํ•ด์„ํ•  ๊ฐ์ • ๋งคํ•‘ ์ •์˜ (๋…ผ๋ฌธ ์„ค๊ณ„ ๊ธฐ๋ฐ˜ ์ ์šฉ)
POSITIVE_RELATION_EMOTIONS = [
"joy", "surprise", "gratitude", "pride", "love",
"admiration", "empathy", "hope", "anticipatory_joy", "calm",
"engagement", "relief", "interest",
]
NEGATIVE_RELATION_EMOTIONS = [
"sadness", "anger", "fear", "disgust", "shame",
"guilt", "jealousy", "resentment", "regret", "schadenfreude",
"anxiety", "confusion", "skepticism", "boredom",
]
COGNITIVE_RELATION_EMOTIONS = [
"compassion", "awe", "attachment", "anticipation", "curiosity",
"nostalgia", "bittersweet", "rumination", "groundedness", "comfort",
]
# ๊ฐ์ •๋ณ„ ๊ด€๊ณ„ ์˜ํ–ฅ๋„ ์ •์˜ (๊ด€๊ณ„์— ์˜ํ–ฅ ์ฃผ๋Š” ๊ฐ์ •๋งŒ ๋“ฑ๋ก, ์ •๊ทœํ™”๋œ [-2.0 ~ +2.0] ๋ฒ”์œ„ ์•ˆ์—์„œ ์ •์˜)
EMOTION_RELATION_IMPACT = {
"joy": 1.0,
"surprise": 0.2,
"gratitude": 1.2,
"pride": 0.5,
"love": 2.0,
"admiration": 0.8,
"empathy": 1.0,
"hope": 0.9,
"anticipatory_joy": 1.2,
"calm": 0.7,
"engagement": 0.3,
"relief": 0.6,
"interest": 0.6,
"sadness": -1.0,
"anger": -1.8,
"disgust": -2.0,
"fear": -1.2,
"shame": -1.2,
"guilt": 0.3,
"jealousy": -1.2,
"resentment": -1.8,
"regret": -0.9,
"schadenfreude": -1.5,
"anxiety": -0.5,
"confusion": -0.2,
"skepticism": -0.2,
"boredom": -0.2,
"compassion": 0.3,
"awe": 0.6,
"attachment": 1.7,
"anticipation": 0.7,
"curiosity": 0.6,
"nostalgia": 0.4,
"bittersweet": 0.4,
"rumination": 0.4,
"groundedness": 0.5,
"comfort": 0.6,
}