GET
/
v1
/
evaluation
/
evaluators
/
{evaluatorId}
import Roark from '@roarkanalytics/sdk';

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

const response = await client.evaluation.getEvaluatorById('evaluatorId');

console.log(response.id);
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "slug": "<string>",
  "description": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "blocks": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "description": "<string>",
      "weight": 50,
      "orderIndex": 123,
      "prompt": "<string>",
      "threshold": 0.5,
      "metricName": "<string>",
      "blockType": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

evaluatorId
string
required

The ID of the evaluator to retrieve

Response

200
application/json

The requested evaluator with its blocks

Evaluator with its configured blocks