Skip to main content

praisonaiagents.storage

Core SDK 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): … pass

Overview

This module provides components for storage.

Constants

NameValue
_LAZY_IMPORTS{'BaseJSONStore': ('base', 'BaseJSONStore'), 'BaseSessionInfo': ('models', 'BaseSessionInfo'), 'JSONStoreProtocol': ('protocols', 'JSONStoreProtocol'), 'SessionInfoProtocol': ('protocols', 'SessionInf...