Update an existing metric
Edit a metric
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Unique identifier of the metric
Criteria for human or composite metrics
Updated name of the metric
Short description of what the metric does
Updated code block for the metric
Updated Evaluator prompt for the metric
Type of the metric - "custom", "model", "human" or "composite"
custom
, model
, human
, composite
Whether to compute on all production events automatically
Whether a ground truth (on metadata) is required to compute it
The data type of the metric value - "boolean", "float", "string"
boolean
, float
, string
Threshold for numeric metrics to decide passing or failing in tests
Threshold for boolean metrics to decide passing or failing in tests
Name of event that the metric is set to be computed on
Type of event that the metric is set to be computed on
model
, tool
, chain
, session
Child metrics added under composite events