Skip to main content

Crate eros_engine_store

Crate eros_engine_store 

Source
Expand description

Postgres + pgvector persistence layer.

Modules§

affinity
Affinity row persistence + EMA-smoothed event recording.
chat
Chat session + message persistence.
decision
Append-only writer for companion_decision_events (PDE judge audit).
error_handling
Error-handling config persistence.
human_insight
Flat, typed projection of the soft (conversation-derived) profile for user<->user matching. The JSONB->columns mapping lives ONLY in project_columns so the source/trigger can be repointed later without touching callers. companion_insights remains the source of truth.
insight
Companion insight storage + JSONB merge + training-level computation.
memory
pgvector-backed companion memory layer.
persona
Persona genome + instance persistence.
pool

Structs§

OpenRouterCallMeta
OpenRouter call metadata captured for the audit columns on event tables (companion_insights_events, companion_affinity_events). All optional — a non-LLM event (e.g. a gift affinity event) carries the default (all None).

Type Aliases§

PgPool
An alias for Pool, specialized for Postgres.