GET
/
v1
/
benchmarks
/
runs
/
{id}
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const benchmarkRunView = await client.benchmarks.runs.retrieve('id');

  console.log(benchmarkRunView.id);
}

main();
{
  "id": "<string>",
  "benchmark_id": "<string>",
  "name": "<string>",
  "start_time_ms": 123,
  "duration_ms": 123,
  "state": "running",
  "score": 123,
  "pending_scenarios": [
    "<string>"
  ],
  "scenario_runs": [
    {
      "scenario_id": "<string>",
      "scenarioRunId": "<string>",
      "scoringResult": {
        "score": 123,
        "scoring_function_results": [
          {
            "score": 123,
            "scoring_function_name": "<string>",
            "output": "<string>",
            "state": "unknown"
          }
        ]
      }
    }
  ],
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The BenchmarkRun ID.

Response

200 - application/json
OK

A BenchmarkRunView represents a run of a complete set of Scenarios, organized under a Benchmark.