Skip to main content

Crate improv_store

Crate improv_store 

Source
Expand description

One model store over either backend: an embedded Mentat file (a path) or a Postgres-hosted model (postgres://…?model=<name>).

The GUI, TUI, CLI and server open models through Store::open; every method delegates to improv_storage_mentat::ModelStore or improv_storage_pg::PgModelStore, which share one surface.

Structs§

SaveToken
What a store handle last loaded or saved, carried to the next handle (see Store::save_token). Default is “nothing loaded”: the save writes the whole model unchecked.

Enums§

Store
A model store: Mentat file or Postgres model.
StoreError
Either backend’s error. Callers match StoreError::Conflict for the “reload and retry” path; everything else is reported as text.

Functions§

is_postgres
True when target names a Postgres-hosted model rather than a file.

Type Aliases§

Result