storage • AI Agent SDK
PraisonAI Agents Storage Framework.
storage
AI Agent
PraisonAI Agents Storage Framework.
Provides common storage abstractions for JSON-based persistence with:
- Thread-safe operations
- File locking for concurrent access
- Common session info dataclass
Zero performance impact when not in use through lazy loading.
Example:
>>> from praisonaiagents.storage import BaseJSONStore, BaseSessionInfo
>>> class MyStore(BaseJSONStore):
... passImport
from praisonaiagents import storageConstants
| Name | Value |
|---|---|
_LAZY_IMPORTS | {'BaseJSONStore': ('base', 'BaseJSONStore'), 'BaseSessionInfo': ('models', 'BaseSessionInfo'), 'JSONStoreProtocol': ('protocols', 'JSONStoreProtocol'), 'SessionInfoProtocol': ('protocols', 'SessionInf... |