Looking for latest HoneyHive v2? See v2 docs here.
import honeyhive
from honeyhive.models import components
s = honeyhive.HoneyHive(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.metrics.update_metric(request=components.MetricEdit(
metric_id='<value>',
))
if res is not None:
# handle response
passEdit a metric
import honeyhive
from honeyhive.models import components
s = honeyhive.HoneyHive(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.metrics.update_metric(request=components.MetricEdit(
metric_id='<value>',
))
if res is not None:
# handle response
passDocumentation Index
Fetch the complete documentation index at: https://docs.honeyhive.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the metric
Criteria for human 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" or "human"
custom, model, human 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
Show child attributes
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 Metric updated successfully
Was this page helpful?