Overview Expressions
DTX Expressions allow dynamic data manipulation and configuration within provider pipelines. They enable flexible control over prompts, API requests, and response transformations.
Why Use Expressions?
- Dynamically construct requests or prompts
- Transform responses before evaluation
- Handle environment-specific logic
- Reduce duplication and enable template reuse
Expressions make configuration files smarter and workflows more adaptable.
Expression Engines Used
Jinja
A powerful templating language for dynamic YAML, JSON, and HTTP payload generation. Commonly used to inject variables, loop through lists, and apply conditional logic.
JQ
A JSON processor used to filter, extract, and transform JSON data. Perfect for reshaping API responses or focusing on relevant evaluation fields.