Skip to main content
Large tool outputs are queued to artifacts automatically — the agent sees compact references instead of flooding context, and explores data on demand with artifact tools. The user asks for large data; middleware stores bulky tool output as artifacts and keeps compact references in context.

Quick Start

1

Enable dynamic context on an agent

Outputs over 32 KB are saved as artifacts; the agent receives references and uses artifact_tail, artifact_grep, etc.
2

Tune the inline threshold


How It Works

Outputs above inline_max_kb are written to disk under base_dir. The agent sees a short reference and pulls only the lines it needs via artifact tools — context stays bounded even after heavy tool runs.

Available Tools

Configuration

Environment variables: PRAISONAI_ARTIFACT_DIR, PRAISONAI_ARTIFACT_INLINE_MAX_KB, PRAISONAI_ARTIFACT_REDACT.

Best Practices

16 KB keeps more headroom in context for long multi-tool sessions.
Automatic redaction prevents credentials in tool output from reaching the LLM or disk logs.
Search artifacts first — avoid pulling entire multi-MB outputs into a single prompt.

Context Management

Full context system

Security & Redaction

Secret redaction details