Retrieve Information About an Existing Evaluation Run
client.Agents.EvaluationRuns.Get(ctx, evaluationRunUuid) (*AgentEvaluationRunGetResponse, error)
/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}
To retrive information about an existing evaluation run, send a GET request to /v2/gen-ai/evaluation_runs/{evaluation_run_uuid}.
Parameters
evaluationRunUuid string
Returns
Retrieve Information About an Existing Evaluation Run
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/-go"
"github.com/stainless-sdks/-go/option"
)
func main() {
client := gradient.NewClient(
option.WithAccessToken("My Access Token"),
)
evaluationRun, err := client.Agents.EvaluationRuns.Get(context.TODO(), `"123e4567-e89b-12d3-a456-426614174000"`)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", evaluationRun.EvaluationRun)
}
{
"evaluation_run": {
"agent_deleted": true,
"agent_deployment_name": "example name",
"agent_name": "example name",
"agent_uuid": "123e4567-e89b-12d3-a456-426614174000",
"agent_version_hash": "example string",
"agent_workspace_uuid": "123e4567-e89b-12d3-a456-426614174000",
"created_by_user_email": "example@example.com",
"created_by_user_id": "12345",
"error_description": "example string",
"evaluation_run_uuid": "123e4567-e89b-12d3-a456-426614174000",
"evaluation_test_case_workspace_uuid": "123e4567-e89b-12d3-a456-426614174000",
"finished_at": "2023-01-01T00:00:00Z",
"pass_status": true,
"queued_at": "2023-01-01T00:00:00Z",
"run_level_metric_results": [
{
"error_description": "example string",
"metric_name": "example name",
"metric_value_type": "METRIC_VALUE_TYPE_UNSPECIFIED",
"number_value": 123,
"reasoning": "example string",
"string_value": "example string"
}
],
"run_name": "example name",
"star_metric_result": {
"error_description": "example string",
"metric_name": "example name",
"metric_value_type": "METRIC_VALUE_TYPE_UNSPECIFIED",
"number_value": 123,
"reasoning": "example string",
"string_value": "example string"
},
"started_at": "2023-01-01T00:00:00Z",
"status": "EVALUATION_RUN_STATUS_UNSPECIFIED",
"test_case_description": "example string",
"test_case_name": "example name",
"test_case_uuid": "123e4567-e89b-12d3-a456-426614174000",
"test_case_version": 123
}
}Returns Examples
{
"evaluation_run": {
"agent_deleted": true,
"agent_deployment_name": "example name",
"agent_name": "example name",
"agent_uuid": "123e4567-e89b-12d3-a456-426614174000",
"agent_version_hash": "example string",
"agent_workspace_uuid": "123e4567-e89b-12d3-a456-426614174000",
"created_by_user_email": "example@example.com",
"created_by_user_id": "12345",
"error_description": "example string",
"evaluation_run_uuid": "123e4567-e89b-12d3-a456-426614174000",
"evaluation_test_case_workspace_uuid": "123e4567-e89b-12d3-a456-426614174000",
"finished_at": "2023-01-01T00:00:00Z",
"pass_status": true,
"queued_at": "2023-01-01T00:00:00Z",
"run_level_metric_results": [
{
"error_description": "example string",
"metric_name": "example name",
"metric_value_type": "METRIC_VALUE_TYPE_UNSPECIFIED",
"number_value": 123,
"reasoning": "example string",
"string_value": "example string"
}
],
"run_name": "example name",
"star_metric_result": {
"error_description": "example string",
"metric_name": "example name",
"metric_value_type": "METRIC_VALUE_TYPE_UNSPECIFIED",
"number_value": 123,
"reasoning": "example string",
"string_value": "example string"
},
"started_at": "2023-01-01T00:00:00Z",
"status": "EVALUATION_RUN_STATUS_UNSPECIFIED",
"test_case_description": "example string",
"test_case_name": "example name",
"test_case_uuid": "123e4567-e89b-12d3-a456-426614174000",
"test_case_version": 123
}
}