pydo.genai.create_custom_evaluation_metric()
Generated on 7 Jul 2026
from pydo version
v0.39.0
Usage
client.genai.create_custom_evaluation_metric(
body={
"config": {...},
"description": "\"Scores adherence to our support macros\"",
"metric_name": "\"My domain tone metric\"",
},
)Description
To create a custom LLM-as-judge metric for model evaluation, send a POST request to /v2/gen-ai/custom_evaluation_metrics.
Parameters
configobject optionalConfiguration for a custom model-evaluation metric scored by an LLM judge.
Prompt and model response are always included in the judge context.Show child properties
created_atstring optional read-onlyExample:
2023-01-01T00:00:00ZTimestamp when the custom metric was created. Server-assigned; ignored on create/update requests.
deleted_atstring optional read-onlyExample:
2023-01-01T00:00:00ZWhen set, the custom metric has been deleted and is no longer available for use in evaluations. Server-assigned; ignored on create/update requests.
requires_ground_truthboolean optionalExample:
TrueWhen true, each row must provide ground truth and it is included in the judge context.
When false, ground truth is not required and is not sent to the judge.scoring_promptstring optionalExample:
example stringInstructions for the judge model (multi-line).
updated_atstring optional read-onlyExample:
2023-01-01T00:00:00ZTimestamp when the custom metric was last updated. Server-assigned; ignored on create/update requests.
descriptionstring optionalExample:
"Scores adherence to our support macros"metric_namestring optionalExample:
"My domain tone metric"
Request Sample
Response Example
More Information
See /v2/gen-ai/custom_evaluation_metrics in the API reference for additional detail on responses, headers, parameters, and more.