Skip to main content

Crate bhava

Crate bhava 

Source
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 instructions
  • mood — Emotional state vectors with time-based decay, triggers, history, and mood-aware prompts
  • archetype — Identity hierarchy (Soul/Spirit/Brain/Body/Heart) with templates and validation
  • sentiment — 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 force
  • relationship — Inter-entity affinity, trust, and interaction tracking
  • appraisal — OCC appraisal model — goal-aware emotion generation
  • stress — Allostatic load / burnout modeling
  • regulation — Emotion regulation strategies (suppress, reappraise, distract)
  • growth — Experience-driven personality evolution
  • monitor — 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 cycles
  • microexpr — Micro-expression detection during emotional suppression
  • affective — Affective computing metrics (complexity, granularity, inertia, variability)
  • proximity — Spatial proximity triggers for location-based mood effects
  • reasoning — Personality-driven reasoning strategy selection
  • active_hours — Time-of-day personality activation scheduling
  • eq — Emotional intelligence (EQ) — Mayer-Salovey four-branch model
  • display_rules — Cultural display rules (Matsumoto framework)
  • energy — Depletable energy resource with Banister fitness-fatigue model
  • circadian — 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 boost
  • preference — Adaptive preference learning from interaction outcomes
  • belief — Belief system — memories crystallize into beliefs, beliefs form self-concept, self-understanding deepens into cosmic understanding
  • intuition — Subconscious pattern integration — gut feelings from converging subsystems
  • aesthetic — 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.