Skip to main contentpraisonai.context
Wrapper
Dynamic Context Discovery for PraisonAI.
This module provides filesystem-backed implementations for:
- Artifact storage (tool outputs, history, terminal logs)
- Tool output queuing middleware
- History persistence with search
- Terminal session logging
Zero Performance Impact:
- All imports are lazy loaded
- Features only activate when explicitly enabled
- No overhead when not used
Usage:
from praisonai.context import (
FileSystemArtifactStore,
OutputQueue,
HistoryStore,
TerminalLogger,
)
Create artifact store
store = FileSystemArtifactStore(base_dir=”~/.praison/runs”)
Create output queue
queue = OutputQueue(store=store, inline_max_kb=32)
Overview
This module provides components for context.