Expand description
Bhava — Emotion and personality engine for AGNOS
Sanskrit: भाव (bhava) — emotion, feeling, state of being
Provides a unified personality and emotional state system for AI agents, game NPCs, and any entity that needs expressive behavior. Extracted from SecureYeoman’s soul/brain architecture.
§Modules
traits— 15-dimension personality spectrums with behavioral instructionsmood— Emotional state vectors with time-based decay, triggers, history, and mood-aware promptsarchetype— Identity hierarchy (Soul/Spirit/Brain/Body/Heart) with templates and validationsentiment— Keyword-based sentiment analysis with negation, intensity modifiers, and sentence-level analysis- [
presets] — Built-in personality templates (BlueShirtGuy, T.Ron, Friday, Oracle, Scout) spirit— Passions, inspirations, and pains — the animating forcerelationship— Inter-entity affinity, trust, and interaction trackingappraisal— OCC appraisal model — goal-aware emotion generationstress— Allostatic load / burnout modelingregulation— Emotion regulation strategies (suppress, reappraise, distract)growth— Experience-driven personality evolutionmonitor— Live sentiment monitoring for streaming text- [
ai] — System prompt composition, sentiment feedback, and agent metadata store— Storage trait for pluggable persistence backends- [
storage] — SQLite persistence implementation (feature:sqlite) rhythm— Biological rhythms: ultradian, seasonal, and biorhythm cyclesmicroexpr— Micro-expression detection during emotional suppressionaffective— Affective computing metrics (complexity, granularity, inertia, variability)proximity— Spatial proximity triggers for location-based mood effectsreasoning— Personality-driven reasoning strategy selectionactive_hours— Time-of-day personality activation schedulingeq— Emotional intelligence (EQ) — Mayer-Salovey four-branch modeldisplay_rules— Cultural display rules (Matsumoto framework)energy— Depletable energy resource with Banister fitness-fatigue modelcircadian— 24-hour alertness cycle with chronotype (Borbély two-process)flow— Flow state detection with hysteresis (Csikszentmihalyi)salience— Somatic marker urgency/importance scoring (Damasio)actr— ACT-R frequency × recency memory activation with Hebbian boostpreference— Adaptive preference learning from interaction outcomesbelief— Belief system — memories crystallize into beliefs, beliefs form self-concept, self-understanding deepens into cosmic understandingintuition— Subconscious pattern integration — gut feelings from converging subsystemsaesthetic— Aesthetic attribution — repeated exposure crystallizes into beliefs and trait pressure- [
compat] — Jantu creature behavior integration (feature:instinct) error— Error types
Re-exports§
pub use error::BhavaError;
Modules§
- active_
hours - Active hours — time-of-day personality activation scheduling.
- actr
- ACT-R activation math — frequency × recency memory activation with Hebbian boost.
- aesthetic
- Aesthetic attribution — repeated aesthetic exposure crystallizes into beliefs.
- affective
- Affective computing metrics — quantitative measures of emotional behavior.
- appraisal
- OCC Appraisal — goal-aware emotion generation.
- archetype
- Identity hierarchy — the “In Our Image” archetype system.
- belief
- Belief system — memories crystallize into beliefs, beliefs form self-concept, self-understanding deepens into cosmic understanding.
- circadian
- Circadian rhythm — 24-hour alertness and mood cycle.
- display_
rules - Cultural display rules — context-dependent expression modification.
- energy
- Energy / fatigue system — depletable resource with Banister fitness-fatigue model.
- eq
- Emotional intelligence (EQ) — the Mayer-Salovey four-branch model.
- error
- Error types for bhava.
- flow
- Flow state detection — threshold detector over mood dimensions.
- growth
- Experience-driven personality growth — traits evolve from accumulated events.
- intuition
- Subconscious pattern integration — gut feelings from converging subsystems.
- microexpr
- Micro-expressions — involuntary emotional leaks during suppression.
- monitor
- Live sentiment monitoring — continuous feedback during text streams.
- mood
- Emotional state vectors with time-based decay.
- preference
- Preference learning — adaptive feedback patterns from interaction history.
- proximity
- Spatial proximity triggers — location-based mood effects.
- reasoning
- Reasoning strategy selection — personality-driven cognitive mode.
- regulation
- Emotion regulation — strategies for managing emotional responses.
- relationship
- Relationship graph — inter-entity affinity, trust, and interaction tracking.
- rhythm
- Biological rhythms — periodic mood modulation cycles.
- salience
- Salience classification — somatic marker urgency/importance scoring.
- sentiment
- Sentiment analysis — classify text into emotional categories.
- spirit
- Spirit system — the animating force within an agent.
- store
- Storage trait — abstract persistence interface for bhava state.
- stress
- Stress / allostatic load — chronic accumulated emotional wear.
- traits
- Personality trait spectrums — behavioral dimensions with graduated levels.