Skip to main content
POST
Invoke a Custom Evaluator

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Evaluator ID

Body

application/json
query
string

Latest user message

output
string

The generated response from the model

reference
string

The reference used to compare the output

retrievals
string[]

Knowledge base retrievals

messages
object[]

The messages used to generate the output, without the last user message

model
string

Model to use for LLM-based evaluators (e.g. "openai/gpt-4o")

Response

Returns the result of the evaluator run

type
enum<string>
required
Available options:
string
original_value
string | null
value
string | null