For AI agents: The documentation index is at https://docs.digitalocean.com/llms.txt. Markdown versions of pages use the same URL with index.html.md in place of the HTML page (for example, append index.html.md to the directory path instead of opening the HTML document).
Usage
client.v2.genAi.model_evaluation_metrics.get(requestConfiguration?: RequestConfiguration<Model_evaluation_metricsRequestBuilderGetQueryParameters>): Promise<undefined | ApiListModelEvaluationMetricsOutput>
Description
To list all available metrics for model evaluation, send a GET request to /v2/genai/model_evaluation_metrics.
Parameters
turnType string optional
When set, only return metrics compatible with this turn type.
One of: EVALUATION_METRIC_TURN_TYPE_UNSPECIFIED, EVALUATION_METRIC_TURN_TYPE_SINGLE_TURN, EVALUATION_METRIC_TURN_TYPE_MULTI_TURN
Default: EVALUATION_METRIC_TURN_TYPE_UNSPECIFIED
Request Sample
Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
createDigitalOceanClient,
DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";
const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);
const response = await client.v2.genAi.model_evaluation_metrics.get();
Response Example
Show Response Example
{
"metrics": [
{
"associated_presets": [],
"category": "METRIC_CATEGORY_UNSPECIFIED",
"description": "example string",
"evaluation_scope": "EVALUATION_SCOPE_UNSPECIFIED",
"inverted": true,
"is_metric_goal": true,
"metric_name": "example name",
"metric_rank": 123,
"metric_type": "METRIC_TYPE_UNSPECIFIED",
"metric_uuid": "123e4567-e89b-12d3-a456-426614174000",
"metric_value_type": "METRIC_VALUE_TYPE_UNSPECIFIED",
"range_max": 123,
"range_min": 123,
"source": "EVALUATION_METRIC_SOURCE_UNSPECIFIED",
"turn_type": "EVALUATION_METRIC_TURN_TYPE_UNSPECIFIED"
}
]
}
See /v2/gen-ai/model_evaluation_metrics in the API reference for additional detail on responses, headers, parameters, and more.