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.evaluation_runs.byEvaluation_run_uuid(evaluation_run_uuid).results.byPrompt_id(prompt_id).get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiGetEvaluationRunPromptResultsOutput>
Description
To retrieve results of an evaluation run, send a GET request to /v2/gen-ai/evaluation_runs/{evaluation_run_uuid}/results/{prompt_id}.
Parameters
evaluation_run_uuid string required
Example: "123e4567-e89b-12d3-a456-426614174000"
Evaluation run UUID.
prompt_id integer required
Example: 1
Prompt ID to get results for.
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.evaluation_runs
.byEvaluation_run_uuid("\"123e4567-e89b-12d3-a456-426614174000\"").results
.byPrompt_id(1).get();
Response Example
Show Response Example
{
"prompt": {
"evaluation_trace_spans": [],
"ground_truth": "example string",
"input": "example string",
"input_tokens": "12345",
"output": "example string",
"output_tokens": "12345",
"prompt_chunks": [],
"prompt_id": 123,
"prompt_level_metric_results": [],
"trace_id": "123e4567-e89b-12d3-a456-426614174000"
}
}
See /v2/gen-ai/evaluation_runs/{evaluation_run_uuid}/results/{prompt_id} in the API reference for additional detail on responses, headers, parameters, and more.