Skip to main content

beam_store

beam_store persists the execution hierarchy.

beam_store = { path = "../riverbeam/crates/beam_store" }

BeamStore​

GroupMethods
Catalogcheckin_agents, checkin_models
Sessionsensure_session, update_session_activity, get_session
Interactionscreate_interaction, complete_interaction, get_interaction
Runscreate_run, complete_run, get_run
Messagessave_message, next_sequence, list_messages
Actionscreate_action, get_action, resolve_action

Row types: AgentRow, ModelRow, SessionRow, InteractionRow, RunRow, MessageRow, ActionRow. Status enums: InteractionStatus, RunStatus, ActionStatus.

agent_id_for(name) derives an agent's UUID (version 5) from its name.

Implementations​

StoreNotes
InMemoryStore::new()The default in RiverBeam
PgBeamStore::connect(url)Builds a pool and creates its tables in ref_beam if missing
PgBeamStore::new(pool)Uses your pool; creates nothing. Call ensure_schema() if you need the tables.

There are no feature flags; Diesel and Postgres support are always compiled.

The tables are listed in Database schema.