Overview
Adapters allow Geval to work with different eval tool formats. Geval includes built-in adapters for popular tools and provides a generic adapter for custom formats.Built-in Adapters
GenericAdapter
Works with any JSON format that matches Geval’s normalized structure.PromptfooAdapter
Automatically detects and parses Promptfoo output format.LangSmithAdapter
Parses LangSmith CSV exports.OpenEvalsAdapter
Parses OpenEvals JSON format.Auto-Detection
Geval can automatically detect the format:Using Adapters
With parseEvalResult
parseEvalResult automatically detects and uses the appropriate adapter:
Explicit Adapter Usage
Use a specific adapter when you know the format:Custom Formats
For custom formats, use the GenericAdapter with source configuration:Adapter Reference
| Adapter | Format | Auto-Detected |
|---|---|---|
GenericAdapter | Normalized JSON | ✅ |
PromptfooAdapter | Promptfoo JSON | ✅ |
LangSmithAdapter | LangSmith CSV | ✅ |
OpenEvalsAdapter | OpenEvals JSON | ✅ |