GET
/
v1
/
scenarios
/
scorers
/
{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 scorer = await client.scenarios.scorers.retrieve('id');

  console.log(scorer.id);
}

main();
{
  "id": "<string>",
  "type": "<string>",
  "bash_script": "<string>"
}

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 Scorer ID.

Response

200 - application/json
OK

A ScenarioScorerView represents a custom scoring function for a Scenario.

id
string
required

ID for the scenario scorer.

type
string
required

Name of the type of scenario scorer.

bash_script
string
required

Bash script that takes in $RL_TEST_CONTEXT as env variable and runs scoring.