Request
name string Required
The name of the metric you're creating in your project.
multiTurn boolean Required
This is true if your metric is used for evaluating multi-turn test cases.
criteria string Optional
The criteria for this particular metric, that will be used to evaluate test cases later.
evaluationSteps string Optional
An alternative to criteria, it is a list of steps to take to evaluate your test cases.
evaluationParams list of enums Optional
It is an array of the params that will be used to evaluate your test cases.
rubric list of objects Optional
A list of score ranges (0–10 inclusive). Must be in order and non-overlapping. Click here to learn more
Response
success boolean
This is true if the metric was created successfully.
data object
This maps to the id of the metric created.
deprecated boolean
This is true if this metrics endpoint is deprecated.