Skip to main content

Module storage

Module storage 

Source
Expand description

Persistent and in-memory stores for gateway records and content objects. Storage backends for the OpenAI-compatible gateway.

The gateway persists request/run/event/response records plus the durable account state (files, batches, threads, vector stores) behind a set of object-store traits. Concrete backends are provided for in-memory maps (MemoryGatewayStore) and SIM tables (TableGatewayStore); both are content-addressed for the eval-pipeline records.

Re-exports§

pub use memory::GatewayStoreCounts;
pub use memory::MemoryGatewayStore;
pub use objects::GATEWAY_BATCH_KIND;
pub use objects::GATEWAY_FILE_KIND;
pub use objects::GATEWAY_THREAD_KIND;
pub use objects::GATEWAY_THREAD_MESSAGE_KIND;
pub use objects::GatewayBatch;
pub use objects::GatewayBatchCounts;
pub use objects::GatewayBatchStatus;
pub use objects::GatewayFile;
pub use objects::GatewayFileStorageRef;
pub use objects::GatewayResponseObjectStore;
pub use objects::GatewayStateStore;
pub use objects::GatewayThread;
pub use objects::GatewayThreadMessage;
pub use objects::StoredGatewayResponse;
pub use table::TableGatewayStore;
pub use trait::GatewayStore;
pub use vector::GATEWAY_VECTOR_STORE_ITEM_KIND;
pub use vector::GATEWAY_VECTOR_STORE_KIND;
pub use vector::GatewayVectorStore;
pub use vector::GatewayVectorStoreItem;

Modules§

memory
In-memory gateway store backed by std::collections::BTreeMaps.
objects
Gateway record kinds (files, batches, threads, messages) and their content-addressed object-store traits.
table
SIM-table-backed gateway store.
trait
The core GatewayStore trait over content-addressed eval records.
vector
Vector-store record kinds for the gateway.