Add Eval Configs to Run Test
Add one or more evaluation configurations to an existing test run. Specify template, name, config mapping, model, and error localizer per config. Returns created eval config objects.
https://api.futureagi.com/simulate/run-tests/{run_test_id}/eval-configs/ Authentication
Path parameters
UUID of the test run to add evaluation configurations to.
Request body
Array of evaluation configuration objects. Each object supports the following fields:
-
template_id(string, UUID, required) — UUID of the evaluation template to use. -
name(string, optional) — Name for this evaluation configuration. Defaults toEval-<template_id>if omitted. Must be unique within the test run. -
config(object, optional) — Template-specific configuration parameters. -
mapping(object, optional) — Maps test execution data fields to the evaluation template’s expected inputs. -
filters(object, optional) — Filter criteria to restrict which test results are evaluated. -
error_localizer(boolean, optional) — Enables granular error localization on evaluation failures. Defaults tofalse. -
model(string, optional) — Model to use for running this evaluation.
Response
201 CreatedArray of created evaluation configuration objects. Each object contains: id, name, config, mapping, filters, error_localizer, model, status, eval_group, and template_id.
Errors
Validation error. Common causes: empty evaluations_config, duplicate name within request, name already exists in test run, non-existent template_id.
{
"evaluations_config": ["Duplicate eval name 'My Eval Config' found in the request. Each evaluation config must have a unique name."]
}Or for existing name conflict:
{"error": "An evaluation config with the name 'My Eval Config' already exists in this run test. Please use a different name."} Missing or invalid X-Api-Key or X-Secret-Key headers.
No test run found with the specified run_test_id.
{"detail": "No RunTest matches the given query."} Unexpected server error.
{"error": "Failed to add evaluation configs: <message>"}