Evaluators API
This API allows managing and executing evaluators in the system. It provides endpoints to create, read, update, and delete evaluators, as well as to perform evaluations using configured evaluators.
The Evaluator Object
The Evaluator object represents an evaluator in the system, which can be used to perform evaluations.
Attributes
| Attribute | Description | Type |
|---|---|---|
id | Unique identifier of the evaluator | String |
alias | Unique alias of the evaluator | String |
version | Version of the evaluator | String |
label | Descriptive label of the evaluator | String |
description | Detailed description of the evaluator | String |
createdAt | Creation date and time of the evaluator | String (ISO 8601) |
updatedAt | Last update date and time | String (ISO 8601) |
specs | Specifications of the evaluator | Object |
Available Operations
Create a New Evaluator
Creates a new evaluator in the system.
Input Parameters:
| Parameter | Description | Type | Required |
|---|---|---|---|
label | Descriptive label of the evaluator | String | No |
alias | Unique alias of the evaluator | String | Yes |
version | Version of the evaluator | String | Yes |
description | Detailed description of the evaluator | String | No |
specs | Specifications of the evaluator | Object | Yes |
Request Example:
Successful Response:
Get an Evaluator
Retrieves information about a specific evaluator.
Path Parameters:
| Parameter | Description |
|---|---|
evaluator_id | ID of the evaluator to retrieve |
Successful Response:
The response will be a complete Evaluator object, as described above.
Update an Evaluator
Updates information of an existing evaluator.
Path Parameters:
| Parameter | Description |
|---|---|
evaluator_id | ID of the evaluator to update |
Input Parameters:
| Parameter | Description | Type |
|---|---|---|
label | New label of the evaluator | String |
description | New description of the evaluator | String |
specs | New specifications of the evaluator | Object |
Request Example:
Successful Response:
The response will be the updated Evaluator object.
Delete an Evaluator
Deletes an evaluator from the system.
Path Parameters:
| Parameter | Description |
|---|---|
evaluator_id | ID of the evaluator to delete |
Successful Response:
Status code 204 (No Content) if the deletion was successful.
List Evaluators
Retrieves a paginated list of evaluators with filtering and sorting options.
Query Parameters:
| Parameter | Description | Type |
|---|---|---|
search | Text to search within evaluators | String |
page | Page number (default: 1) | Integer |
per-page | Items per page (default: 10) | Integer |
sort-by | Field to sort by | String |
sort-direction | Sorting direction (asc or desc) | String |
Successful Response:
The response will be a paginated list of Evaluator objects.
Execute an Evaluation
Performs an evaluation using a specific evaluator.
Path Parameters:
| Parameter | Description |
|---|---|
evaluator_id | ID of the evaluator to use |
Input Parameters:
| Parameter | Description | Type |
|---|---|---|
instance | Data of the instance to evaluate | Object |
entities | List of related entities | Array |
Request Example:
Successful Response:
The response will be an EvaluationEngineOutput object containing the evaluation results.
Error Handling
The API may return the following error codes:
| Code | Description |
|---|---|
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 500 | Internal Server Error |
Errors will include a descriptive message in the response body.