NAME

OpenAPI::Client::OpenAI::Path::evals-eval_id-runs-run_id - Documentation for the /evals/{eval_id}/runs/{run_id} path.

OPERATIONS

DELETE /evals/{eval_id}/runs/{run_id}

deleteEvalRun

$client->delete_eval_run({
    body => { ... },
});

Delete an eval run.

Path/query parameters

  • eval_id (in path, required, string) - The ID of the evaluation to delete the run from.

  • run_id (in path, required, string) - The ID of the run to delete.

Responses

200 - Successfully deleted the eval run

Content-Type: application/json

Properties:

  • deleted (boolean)

  • object (string)

  • run_id (string)

Example:

{
   "deleted" : true,
   "object" : "eval.run.deleted",
   "run_id" : "evalrun_677469f564d48190807532a852da3afb"
}

404 - Run not found

Content-Type: application/json

Example:

{
   "code" : "string",
   "message" : "string",
   "param" : "string",
   "type" : "string"
}

GET /evals/{eval_id}/runs/{run_id}

getEvalRun

$client->get_eval_run({
    body => { ... },
});

Get an evaluation run by ID.

Path/query parameters

  • eval_id (in path, required, string) - The ID of the evaluation to retrieve runs for.

  • run_id (in path, required, string) - The ID of the run to retrieve.

Responses

200 - The evaluation run

Content-Type: application/json

Example:

{
   "created_at" : 1743092069,
   "data_source" : {
      "input_messages" : {
         "template" : [
            {
               "content" : {
                  "text" : "Categorize a given news headline into one of the following topics: Technology, Markets, World, Business, or Sports.\n\n# Steps\n\n1. Analyze the content of the news headline to understand its primary focus.\n2. Extract the subject matter, identifying any key indicators or keywords.\n3. Use the identified indicators to determine the most suitable category out of the five options: Technology, Markets, World, Business, or Sports.\n4. Ensure only one category is selected per headline.\n\n# Output Format\n\nRespond with the chosen category as a single word. For instance: \"Technology\", \"Markets\", \"World\", \"Business\", or \"Sports\".\n\n# Examples\n\n**Input**: \"Apple Unveils New iPhone Model, Featuring Advanced AI Features\"  \n**Output**: \"Technology\"\n\n**Input**: \"Global Stocks Mixed as Investors Await Central Bank Decisions\"  \n**Output**: \"Markets\"\n\n**Input**: \"War in Ukraine: Latest Updates on Negotiation Status\"  \n**Output**: \"World\"\n\n**Input**: \"Microsoft in Talks to Acquire Gaming Company for $2 Billion\"  \n**Output**: \"Business\"\n\n**Input**: \"Manchester United Secures Win in Premier League Football Match\"  \n**Output**: \"Sports\" \n\n# Notes\n\n- If the headline appears to fit into more than one category, choose the most dominant theme.\n- Keywords or phrases such as \"stocks\", \"company acquisition\", \"match\", or technological brands can be good indicators for classification.\n",
                  "type" : "input_text"
               },
               "role" : "developer",
               "type" : "message"
            },
            {
               "content" : {
                  "text" : "{{item.input}}",
                  "type" : "input_text"
               },
               "role" : "user",
               "type" : "message"
            }
         ],
         "type" : "template"
      },
      "model" : "gpt-4o-mini",
      "sampling_params" : {
         "max_completions_tokens" : 2048,
         "seed" : 42,
         "temperature" : 1,
         "top_p" : 1
      },
      "source" : {
         "content" : [
            {
               "item" : {
                  "ground_truth" : "Technology",
                  "input" : "Tech Company Launches Advanced Artificial Intelligence Platform"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Markets",
                  "input" : "Central Bank Increases Interest Rates Amid Inflation Concerns"
               }
            },
            {
               "item" : {
                  "ground_truth" : "World",
                  "input" : "International Summit Addresses Climate Change Strategies"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Business",
                  "input" : "Major Retailer Reports Record-Breaking Holiday Sales"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Sports",
                  "input" : "National Team Qualifies for World Championship Finals"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Markets",
                  "input" : "Stock Markets Rally After Positive Economic Data Released"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Business",
                  "input" : "Global Manufacturer Announces Merger with Competitor"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Technology",
                  "input" : "Breakthrough in Renewable Energy Technology Unveiled"
               }
            },
            {
               "item" : {
                  "ground_truth" : "World",
                  "input" : "World Leaders Sign Historic Climate Agreement"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Sports",
                  "input" : "Professional Athlete Sets New Record in Championship Event"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Business",
                  "input" : "Financial Institutions Adapt to New Regulatory Requirements"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Technology",
                  "input" : "Tech Conference Showcases Advances in Artificial Intelligence"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Markets",
                  "input" : "Global Markets Respond to Oil Price Fluctuations"
               }
            },
            {
               "item" : {
                  "ground_truth" : "World",
                  "input" : "International Cooperation Strengthened Through New Treaty"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Sports",
                  "input" : "Sports League Announces Revised Schedule for Upcoming Season"
               }
            }
         ],
         "type" : "file_content"
      },
      "type" : "completions"
   },
   "error" : null,
   "eval_id" : "eval_67e579652b548190aaa83ada4b125f47",
   "id" : "evalrun_67e57965b480819094274e3a32235e4c",
   "metadata" : {},
   "model" : "gpt-4o-mini",
   "name" : "gpt-4o-mini",
   "object" : "eval.run",
   "per_model_usage" : null,
   "per_testing_criteria_results" : null,
   "report_url" : "https://platform.openai.com/evaluations/eval_67e579652b548190aaa83ada4b125f47?run_id=evalrun_67e57965b480819094274e3a32235e4c",
   "result_counts" : {
      "errored" : 0,
      "failed" : 0,
      "passed" : 0,
      "total" : 0
   },
   "status" : "queued"
}

POST /evals/{eval_id}/runs/{run_id}

cancelEvalRun

$client->cancel_eval_run({
    body => { ... },
});

Cancel an ongoing evaluation run.

Path/query parameters

  • eval_id (in path, required, string) - The ID of the evaluation whose run you want to cancel.

  • run_id (in path, required, string) - The ID of the run to cancel.

Responses

200 - The canceled eval run object

Content-Type: application/json

Example:

{
   "created_at" : 1743092069,
   "data_source" : {
      "input_messages" : {
         "template" : [
            {
               "content" : {
                  "text" : "Categorize a given news headline into one of the following topics: Technology, Markets, World, Business, or Sports.\n\n# Steps\n\n1. Analyze the content of the news headline to understand its primary focus.\n2. Extract the subject matter, identifying any key indicators or keywords.\n3. Use the identified indicators to determine the most suitable category out of the five options: Technology, Markets, World, Business, or Sports.\n4. Ensure only one category is selected per headline.\n\n# Output Format\n\nRespond with the chosen category as a single word. For instance: \"Technology\", \"Markets\", \"World\", \"Business\", or \"Sports\".\n\n# Examples\n\n**Input**: \"Apple Unveils New iPhone Model, Featuring Advanced AI Features\"  \n**Output**: \"Technology\"\n\n**Input**: \"Global Stocks Mixed as Investors Await Central Bank Decisions\"  \n**Output**: \"Markets\"\n\n**Input**: \"War in Ukraine: Latest Updates on Negotiation Status\"  \n**Output**: \"World\"\n\n**Input**: \"Microsoft in Talks to Acquire Gaming Company for $2 Billion\"  \n**Output**: \"Business\"\n\n**Input**: \"Manchester United Secures Win in Premier League Football Match\"  \n**Output**: \"Sports\" \n\n# Notes\n\n- If the headline appears to fit into more than one category, choose the most dominant theme.\n- Keywords or phrases such as \"stocks\", \"company acquisition\", \"match\", or technological brands can be good indicators for classification.\n",
                  "type" : "input_text"
               },
               "role" : "developer",
               "type" : "message"
            },
            {
               "content" : {
                  "text" : "{{item.input}}",
                  "type" : "input_text"
               },
               "role" : "user",
               "type" : "message"
            }
         ],
         "type" : "template"
      },
      "model" : "gpt-4o-mini",
      "sampling_params" : {
         "max_completions_tokens" : 2048,
         "seed" : 42,
         "temperature" : 1,
         "top_p" : 1
      },
      "source" : {
         "content" : [
            {
               "item" : {
                  "ground_truth" : "Technology",
                  "input" : "Tech Company Launches Advanced Artificial Intelligence Platform"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Markets",
                  "input" : "Central Bank Increases Interest Rates Amid Inflation Concerns"
               }
            },
            {
               "item" : {
                  "ground_truth" : "World",
                  "input" : "International Summit Addresses Climate Change Strategies"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Business",
                  "input" : "Major Retailer Reports Record-Breaking Holiday Sales"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Sports",
                  "input" : "National Team Qualifies for World Championship Finals"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Markets",
                  "input" : "Stock Markets Rally After Positive Economic Data Released"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Business",
                  "input" : "Global Manufacturer Announces Merger with Competitor"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Technology",
                  "input" : "Breakthrough in Renewable Energy Technology Unveiled"
               }
            },
            {
               "item" : {
                  "ground_truth" : "World",
                  "input" : "World Leaders Sign Historic Climate Agreement"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Sports",
                  "input" : "Professional Athlete Sets New Record in Championship Event"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Business",
                  "input" : "Financial Institutions Adapt to New Regulatory Requirements"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Technology",
                  "input" : "Tech Conference Showcases Advances in Artificial Intelligence"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Markets",
                  "input" : "Global Markets Respond to Oil Price Fluctuations"
               }
            },
            {
               "item" : {
                  "ground_truth" : "World",
                  "input" : "International Cooperation Strengthened Through New Treaty"
               }
            },
            {
               "item" : {
                  "ground_truth" : "Sports",
                  "input" : "Sports League Announces Revised Schedule for Upcoming Season"
               }
            }
         ],
         "type" : "file_content"
      },
      "type" : "completions"
   },
   "error" : null,
   "eval_id" : "eval_67e579652b548190aaa83ada4b125f47",
   "id" : "evalrun_67e57965b480819094274e3a32235e4c",
   "metadata" : {},
   "model" : "gpt-4o-mini",
   "name" : "gpt-4o-mini",
   "object" : "eval.run",
   "per_model_usage" : null,
   "per_testing_criteria_results" : null,
   "report_url" : "https://platform.openai.com/evaluations/eval_67e579652b548190aaa83ada4b125f47?run_id=evalrun_67e57965b480819094274e3a32235e4c",
   "result_counts" : {
      "errored" : 0,
      "failed" : 0,
      "passed" : 0,
      "total" : 0
   },
   "status" : "queued"
}

SCHEMAS

Error

Properties:

  • code (anyOf, required)

  • message (string, required)

  • param (anyOf, required)

  • type (string, required)

EvalApiError

Properties:

  • code (string, required) - The error code.

  • message (string, required) - The error message.

EvalRun

Properties:

  • created_at (integer, required) - Unix timestamp (in seconds) when the evaluation run was created.

  • data_source (object, required) - Information about the run's data source.

  • error (EvalApiError, required)

    See "EvalApiError" below for shape.

  • eval_id (string, required) - The identifier of the associated evaluation.

  • id (string, required) - Unique identifier for the evaluation run.

  • metadata (Metadata, required)

    See "Metadata" below for shape.

  • model (string, required) - The model that is evaluated, if applicable.

  • name (string, required) - The name of the evaluation run.

  • object (string, required) - The type of the object. Always "eval.run".

    Allowed values: eval.run

    Default: eval.run

  • per_model_usage (array of object, required) - Usage statistics for each model during the evaluation run.

  • per_testing_criteria_results (array of object, required) - Results per testing criteria applied during the evaluation run.

  • report_url (string, required) - The URL to the rendered evaluation run report on the UI dashboard.

  • result_counts (object, required) - Counters summarizing the outcomes of the evaluation run.

  • status (string, required) - The status of the evaluation run.

Metadata

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.

Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

SEE ALSO

OpenAPI::Client::OpenAI::Path

COPYRIGHT AND LICENSE

Copyright (C) 2023-2026 by Nelson Ferraz

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.0 or, at your option, any later version of Perl 5 you may have available.