Skip to main content
PUT
/
v1
/
agents
/
agents
/
{agentId}
/
evaluation-config
Update evaluation configuration for an agent
curl --request PUT \
  --url https://api.devic.ai/v1/agents/agents/{agentId}/evaluation-config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "evaluatorModel": "<string>",
  "enabled": true,
  "threshold": 0.5
}
'
{
  "evaluatorModel": "<string>",
  "enabled": true,
  "threshold": 0.5
}

Authorizations

Authorization
string
header
required

Use JWT token for authentication

Path Parameters

agentId
string<uuid>
required

UUID of the agent whose evaluation config should be updated

Body

application/json

New evaluation configuration for the agent

evaluatorModel
string

Identifier for the model used to evaluate the agent

enabled
boolean
default:true

Whether automatic evaluation is enabled for this agent

threshold
number<float>

Threshold score for flagging evaluations

Required range: 0 <= x <= 1

Response

Evaluation configuration updated successfully

evaluatorModel
string

Identifier for the model used to evaluate the agent

enabled
boolean
default:true

Whether automatic evaluation is enabled for this agent

threshold
number<float>

Threshold score for flagging evaluations

Required range: 0 <= x <= 1