quality_check=True score outputs and store high-quality results in memory.
How It Works
Quick Start
How It Works
Whenquality_check=True and memory is configured:
- Agent completes the task
Memory.calculate_quality_metrics()scores completeness, relevance, clarity, accuracy via LLMfinalize_task_output()stores in long-term memory only when score exceeds 0.7- Quality metadata attaches to the task result
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
quality_check | bool | True | Enable LLM quality assessment |
expected_output | str | None | Benchmark for scoring (strongly recommended) |
memory | Memory | None | Required for quality storage |
"fast" disables quality check; "balanced" and "thorough" enable it.
Best Practices
Always set expected_output
Always set expected_output
Clear expectations produce meaningful scores — vague tasks score inconsistently.
Configure memory first
Configure memory first
Quality checking stores to memory — attach
memory=Memory() to the agent or task.Disable for drafts
Disable for drafts
Set
quality_check=False on brainstorming or speed-critical tasks.Retrieve high-quality history
Retrieve high-quality history
Search with
min_quality=0.7 to reuse past strong outputs as context.Related
Quality-Based RAG
Quality scoring for retrieval
Memory
Memory configuration and search

