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_runs.byEval_run_uuid(eval_run_uuid).patch(body: ApiUpdateModelEvaluationRunInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiUpdateModelEvaluationRunOutput>
Description
To update a model evaluation run’s display name, send a PATCH request to /v2/gen-ai/model_evaluation_runs/{eval_run_uuid}.
Parameters
Path Parameters
eval_run_uuid string required
Example: "123e4567-e89b-12d3-a456-426614174000"
UUID of the model evaluation run to update. Returned by CreateModelEvaluationRun
and listed via ListModelEvaluationRuns.
Request Body
evalRunUuid string optional
Example: "12345678-1234-1234-1234-123456789012"
UUID of the model evaluation run to update. Returned by CreateModelEvaluationRun
and listed via ListModelEvaluationRuns.
name string optional
Example: My evaluation run
Optional new display name for the evaluation run (max 255 characters).
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_runs
.byEval_run_uuid("\"123e4567-e89b-12d3-a456-426614174000\"").patch({
evalRunUuid: "\"12345678-1234-1234-1234-123456789012\"",
name: "My evaluation run",
});
Response Example
Show Response Example
{
"run": {
"candidate_model_name": "example name",
"candidate_model_source": "CANDIDATE_MODEL_SOURCE_SERVERLESS",
"candidate_model_uuid": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2023-01-01T00:00:00Z",
"dataset_name": "example name",
"dataset_uuid": "123e4567-e89b-12d3-a456-426614174000",
"eval_run_uuid": "123e4567-e89b-12d3-a456-426614174000",
"judge_model_name": "example name",
"judge_model_uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "example name",
"progress": {
"candidate_rows_evaluated": 100,
"judge_rows_evaluated": 95,
"total_rows": 100
},
"status": "MODEL_EVALUATION_RUN_STATUS_UNSPECIFIED"
}
}
See /v2/gen-ai/model_evaluation_runs/{eval_run_uuid} in the API reference for additional detail on responses, headers, parameters, and more.