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.listJobRuns('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
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.listJobRuns('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>"
}
]
}
}