Skip to main content
POST
/
test_framework
/
v1
/
metrics
/
preview
cURL
curl --request POST \
  --url https://api.cekura.ai/test_framework/v1/metrics/preview/ \
  --header 'Content-Type: application/json' \
  --header 'X-CEKURA-API-KEY: <api-key>' \
  --data '
{
  "agent_id": 123,
  "metric_data": {
    "name": "<string>",
    "type": "basic",
    "eval_type": "binary_workflow_adherence",
    "evaluation_trigger": "always",
    "evaluation_trigger_prompt": "",
    "description": "",
    "prompt": "",
    "custom_code": "",
    "enum_values": [
      "<string>"
    ]
  },
  "call_log_ids": [
    123
  ],
  "run_ids": [
    123
  ]
}
'

Authorizations

X-CEKURA-API-KEY
string
header
required

API Key Authentication. It should be included in the header of each request.

Body

agent_id
integer
required

Agent ID - all call logs/runs must belong to this agent

metric_data
object
required

Metric configuration to evaluate

call_log_ids
integer[]

List of call log IDs to evaluate (maximum 10, required if run_ids not provided)

Required array length: 1 - 10 elements
run_ids
integer[]

List of run IDs to evaluate (maximum 10, required if call_log_ids not provided)

Required array length: 1 - 10 elements

Response

200

Returns progress_id for tracking progress