Storage interface

Defines the version 1 interface for storage operations in the Agents platform.

Remarks

Storage providers persist state data across conversation turns, enabling agents to maintain context over time. Different implementations may store data in memory, databases, blob storage, or other persistence mechanisms.

The interface is designed to be simple with just three core operations: read, write, and delete. All operations are asynchronous to support both in-memory and remote storage providers. New implementations should use StorageV2; this V1 interface remains supported by StorageProvider through a compatibility adapter.

Properties

delete

Deletes store items from storage.

read

Reads store items from storage.

write

Writes store items to storage.

Property Details

delete

Deletes store items from storage.

delete: (keys: string[]) => Promise<void>

Property Value

(keys: string[]) => Promise<void>

read

Reads store items from storage.

read: (keys: string[]) => Promise<StoreItem>

Property Value

(keys: string[]) => Promise<StoreItem>

write

Writes store items to storage.

write: (changes: StoreItem) => Promise<void>

Property Value

(changes: StoreItem) => Promise<void>