ooai_persistence.settingsΒΆ

Settings models for ooai_persistence.

Purpose:

Centralize configuration for LangGraph checkpointers, stores, serializer strictness, cache backends, and local infrastructure defaults.

Design:

AppSettings is the package-local environment-backed settings entry point. It intentionally focuses on persistence concerns only so that upstream runtime/model packages can compose it cleanly.

Functions

memory_settings(*[, graph_cache])

Return a zero-infrastructure in-memory settings preset.

postgres_settings([uri, host, port, ...])

Return an async Postgres settings preset.

sqlite_settings([path])

Return a local SQLite settings preset.

Classes

AppSettings([_case_sensitive, ...])

Top-level settings for ooai_persistence.

CheckpointerSettings(*[, backend, ...])

Checkpointer backend configuration.

GraphCacheSettings(*[, enabled, backend, ...])

Graph cache configuration.

InfraSettings(*[, postgres_enabled, ...])

Local infrastructure defaults for Docker Compose and development.

LangSmithSettings([_case_sensitive, ...])

Tracing-related environment settings that persistence packages often need nearby.

ResourceBackendSettings(*[, backend, ...])

Shared backend settings for checkpointers and stores.

RuntimeDefaultsSettings(*[, setup_on_start, ...])

General runtime defaults for persistence resources.

SerializerSettings(*[, strict_msgpack, ...])

Serializer hardening settings.

StoreSettings(*[, backend, prefer_async, ...])

Long-term store backend configuration.