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
project_id Project Id (string)required
evaluator_key Evaluator Key (string)required
settings_valuesobject
anyOf
created_at Created At (string)required
updated_at Updated At (string)required
{
"id": "string",
"name": "string",
"project_id": "string",
"evaluator_key": "string",
"settings_values": {},
"created_at": "string",
"updated_at": "string"
}
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...