Storage interface

Defines the 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.

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

Property Value

(keys: string[]) => Promise

read

Reads store items from storage.

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

Property Value

(keys: string[]) => Promise

write

Writes store items to storage.

write: (changes: StoreItem) => Promise

Property Value

(changes: StoreItem) => Promise