Retrieve paginated details of a specific evaluation job runs
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.getJobRuns('jobId');
console.log(response.data);{
"data": {
"pagination": {
"total": 123,
"hasMore": true,
"nextCursor": "<string>"
},
"data": [
{
"evaluator": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"weight": 123
},
"status": "PENDING",
"metrics": [
{
"name": "<string>",
"valueType": "<string>",
"numericValue": 123,
"booleanValue": true,
"textValue": "<string>",
"confidence": 0.5,
"reasoning": "<string>",
"role": "<string>",
"createdAt": "<string>"
}
],
"evidence": [
{
"snippetText": "<string>",
"commentText": "<string>",
"isPositive": true,
"createdAt": "<string>"
}
],
"blockRuns": [
{
"blockRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockDefinitionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockName": "<string>",
"status": "PENDING",
"result": "PASSED",
"score": 0.5,
"reason": "<string>",
"createdAt": "<string>"
}
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"score": 0.5,
"result": "SUCCESS",
"summary": "<string>",
"startedAt": "<string>",
"completedAt": "<string>"
}
]
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Cursor for the next page of items
Number of items to return per page
1 - 50"10"
Successfully retrieved evaluation job runs
Evaluation job runs response payload
Show child attributes
Evaluator runs of the evaluation job
Show child attributes
Status of the evaluator run
PENDING, IN_PROGRESS, COMPLETED, FAILED Show child attributes
Name of the metric
Value type of the metric
Numeric value of the metric
Boolean value of the metric
Text value of the metric
Confidence level of the metric (0-1)
0 <= x <= 1Reasoning of the metric
Role of the metric
Created at of the metric
Show child attributes
All block runs for this evaluator, including skipped ones
Show child attributes
ID of the block run instance
ID of the block definition
Name of the evaluation block
Status of the block run
PENDING, RUNNING, COMPLETED, FAILED Result of the block run
PASSED, FAILED, SKIPPED Score of the block run (0-1)
0 <= x <= 1Reason for the outcome (pass/fail explanation or skip reason)
When the block run was created
ID of the evaluator run
Score of the evaluation run (0-1)
0 <= x <= 1Result of the evaluator run based on score threshold (IRRELEVANT is mapped to SKIPPED)
SUCCESS, FAILURE, SKIPPED Summary of the evaluation run
When the evaluator run started
When the evaluator run completed
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.getJobRuns('jobId');
console.log(response.data);{
"data": {
"pagination": {
"total": 123,
"hasMore": true,
"nextCursor": "<string>"
},
"data": [
{
"evaluator": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"weight": 123
},
"status": "PENDING",
"metrics": [
{
"name": "<string>",
"valueType": "<string>",
"numericValue": 123,
"booleanValue": true,
"textValue": "<string>",
"confidence": 0.5,
"reasoning": "<string>",
"role": "<string>",
"createdAt": "<string>"
}
],
"evidence": [
{
"snippetText": "<string>",
"commentText": "<string>",
"isPositive": true,
"createdAt": "<string>"
}
],
"blockRuns": [
{
"blockRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockDefinitionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"blockName": "<string>",
"status": "PENDING",
"result": "PASSED",
"score": 0.5,
"reason": "<string>",
"createdAt": "<string>"
}
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"score": 0.5,
"result": "SUCCESS",
"summary": "<string>",
"startedAt": "<string>",
"completedAt": "<string>"
}
]
}
}