Custom Extractors
Create your own extractors to pull exactly what you need from agent trajectories.
While built-in extractors cover common cases, custom extractors let you implement specialized extraction logic for your specific use case.
Why Custom Extractors?
Use custom extractors when you need to:
- Extract structured data: Parse JSON fields from agent responses
- Filter specific patterns: Extract code blocks, URLs, or formatted content
- Combine data sources: Merge information from multiple messages or memory blocks
- Count occurrences: Track how many times something happened
- Complex logic: Implement domain-specific extraction
Basic Structure
Example: Extract Memory Insert
Registration
Custom extractors are automatically registered when you import them in your suite’s setup script or custom evaluators file.
Next Steps
- Built-in Extractors - Available extractors
- Extractors Concept - Understanding extractors