> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# context • AI Agents Framework

> Dynamic Context Discovery for PraisonAI.

# context

<Badge color="purple">AI Agents Framework</Badge>

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)

## Import

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonai import context
```

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Context Concept" icon="layer-group" href="/docs/concepts/context" />

  <Card title="Context Management" icon="sliders" href="/docs/features/context-management" />

  <Card title="Context Strategies" icon="diagram-project" href="/docs/features/context-strategies" />
</CardGroup>
