context • AI Agents Framework

Dynamic Context Discovery for PraisonAI.

context

AI Agents Framework

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:

python
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)

Import

python
from praisonai import context

Related Documentation