GET
/
v1
/
evaluation
/
evaluators
JavaScript
import Roark from '@roarkanalytics/sdk';

const client = new Roark({
  bearerToken: 'My Bearer Token',
});

const response = await client.evaluation.getEvaluators();

console.log(response.data);
{
  "data": [
    {
      "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,
          "blockType": "<string>",
          "prompt": "<string>",
          "threshold": 0.5,
          "metricName": "<string>"
        }
      ]
    }
  ],
  "pagination": {
    "total": 123,
    "hasMore": true,
    "nextCursor": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

limit
string

Maximum number of evaluators to return (default: 20, max: 50)

Example:

"20"

after
string

Cursor for pagination - evaluator ID to start after

Response

200
application/json

List of evaluators with their blocks

Response containing evaluators and pagination info