limbic_system
Limbic System package initialization.
Exposes all public interfaces as well as legacy internal functions and constants to ensure complete backward compatibility with downstream modules, reset tools, and tests.
- class limbic_system.LimbicSystem(redis_client=None, openrouter_api_key=None, openrouter_client=None, cache_redis_client=None)[source]
Bases:
objectShard-based limbic respiration backed by Redis DB12.
- Parameters:
openrouter_api_key (Optional[str])
- async inhale(channel_id)[source]
RESPIRATION PHASE 1: INHALE
Fetches local shard + global heart, mixes via osmosis, runs homeostatic regulation, returns the effective state.
- async exhale(channel_id, stimulus_delta, apply_decay=True, user_message='', star_reply='', user_id='', appraisal_dimensions=None, config=None, platform='')[source]
RESPIRATION PHASE 2: EXHALE
Updates local shard with new delta, applies metabolic decay, and pulses global heart.
- async scan_triggers(text, query_embedding=None)[source]
Scan text for emotional triggers using semantic matching.