Quick Start
- Large tool outputs (>32KB) are automatically saved as artifacts
- Agent receives compact references instead of flooding context
- Agent can use
artifact_tail,artifact_grepto explore data on-demand
Configuration
Available Tools
When you passctx.get_tools(), agents get:
| Tool | Description |
|---|---|
artifact_tail | Get last N lines |
artifact_head | Get first N lines |
artifact_grep | Search for pattern |
artifact_chunk | Get line range |
artifact_list | List artifacts |
How It Works
- Middleware intercepts tool outputs
- Outputs > threshold are saved to
~/.praisonai/runs/ - Compact reference returned in context
- Agent uses artifact tools to explore data
Environment Variables
API Reference
setup_dynamic_context()
DynamicContextSetup
| Method | Returns |
|---|---|
get_tools() | List of artifact tools for Agent(tools=...) |
get_middleware() | Queue middleware for Agent(hooks=...) |

