Create

Create an evaluator within your organization.

Headers

X-API-KEYstringRequired

Request

This endpoint expects an object.
namestringRequired>=1 character<=255 characters
The name of the evaluator.
descriptionstringRequired<=255 characters
The description of the evaluator.
arguments_typeenumRequired

Whether this evaluator is target-free or target-required.

Allowed values:
return_typeenumRequired
The type of the return value of the evaluator.
Allowed values:
typeenumRequired
The type of the evaluator.
Allowed values:
codestringOptional
The code for the evaluator. This code will be executed in a sandboxed environment.
model_configobjectOptional
The model configuration used to generate.

Response

Successful Response
namestring>=1 character<=255 characters
The name of the evaluator.
descriptionstring<=255 characters
The description of the evaluator.
arguments_typeenum

Whether this evaluator is target-free or target-required.

Allowed values:
return_typeenum
The type of the return value of the evaluator.
Allowed values:
typeenum
The type of the evaluator.
Allowed values:
idstring

Unique ID for the evaluator. Starts with evfn_.

created_atdatetime
updated_atdatetime
codestring or null
The code for the evaluator. This code will be executed in a sandboxed environment.
model_configobject or null
The model config defining the LLM evaluator.
logging_projectobject or null
The project where the evaluator logs are stored.

Errors