Skip to main content

Interface: AgentOsSqlStorageConfig

Defined in: packages/agentos/src/core/storage/SqlStorageAdapter.ts:61

Configuration options for the AgentOS SQL storage adapter.

Extends the base storage resolution options with AgentOS-specific settings.

AgentOsSqlStorageConfig

Example

const config: AgentOsSqlStorageConfig = {
filePath: './agentos.db',
priority: ['better-sqlite3', 'sqljs'],
enableAutoMigration: true,
messageRetentionDays: 90 // Keep 3 months of history
};

Extends

  • unknown

Properties

enableAutoMigration?

optional enableAutoMigration: boolean

Defined in: packages/agentos/src/core/storage/SqlStorageAdapter.ts:62

Automatically run schema migrations on init


messageRetentionDays?

optional messageRetentionDays: number

Defined in: packages/agentos/src/core/storage/SqlStorageAdapter.ts:63

Auto-delete messages older than X days (0 = disabled)