Create Metrics
Creates a new metric on your Confident AI project.
Headers
CONFIDENT_API_KEY
The API key of your Confident AI project.
Request
name
The name of the metric you're creating in your project.
multiTurn
This is true if your metric is used for evaluating multi-turn test cases.
criteria
The criteria for this particular metric, that will be used to evaluate test cases later.
evaluationSteps
An alternative to criteria, it is a list of steps to take to evaluate your test cases.
evaluationParams
It is an array of the params that will be used to evaluate your test cases.
rubric
A list of score ranges (0–10 inclusive). Must be in order and non-overlapping. Click here to [learn more](https://deepeval.com/docs/metrics-llm-evals#rubric)
Response
success
This is true if the metric was created successfully.
data
This maps to the id of the metric created.
deprecated
This is true if this metrics endpoint is deprecated.