Create Metric
Create a new metric.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
A request to create a new metric.
The name of the metric. Metric names must contain only lowercase letters, numbers, hyphens, or underscores, and must start with a lowercase letter and end with either a lowercase letter or number. Metric names must be unique within a project.
"my_metric"
The type of metric.
binary
, likert_1_to_5
An optional description of the metric.
"An example metric demonstrating functionality."
The fields that are required for the metric. All metrics must require at least model_input
and model_output
, which are the default values.
An enum for the fields that can be used as inputs to an Atla evaluator.
model_input
, model_output
, model_context
, expected_model_output
[
"model_input",
"model_output",
"model_context",
"expected_model_output"
]
Response
A response containing the ID of the created metric.
The ID of the request the response is for.
"123e4567-e89b-12d3-a456-426614174000"
The ID of the created metric.
"success"