Evaluator Run
POST/evaluators/:evaluator_key/run
Endpoint to evaluate LLM app run
Args: request (Request): The request object. evaluator_key (str): The key of the evaluator. payload (EvaluatorInputInterface): The payload containing the request data.
Returns: result: EvaluatorOutputInterface object containing the outputs.
Request
Path Parameters
evaluator_key Evaluator Keyrequired
- application/json
Body
required
inputs object
settingsobject
anyOf
credentialsobject
anyOf
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
outputs objectrequired
{
"outputs": {}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detailobject[]
locobject[]required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...