Create New Evaluator Config
POST/evaluators/configs
Endpoint to fetch evaluator configurations for a specific app.
Args: app_id (str): The ID of the app.
Returns: EvaluatorConfigDB: Evaluator configuration api model.
Request
- application/json
Body
required
app_id App Id (string)required
name Name (string)required
evaluator_key Evaluator Key (string)required
settings_values objectrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
id Id (string)required
name Name (string)required
evaluator_key Evaluator Key (string)required
settings_values object
created_at date-timerequired
updated_at date-timerequired
{
"id": "string",
"name": "string",
"evaluator_key": "string",
"settings_values": {},
"created_at": "2024-08-19T07:55:04.445Z",
"updated_at": "2024-08-19T07:55:04.445Z"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...