test_framework

POST /test_framework/v1/metrics/generate_metrics/

Changed on

Generates suggested metrics for an AI agent. Returns a progress_id to poll via generate_metrics_progress. Results appear in the progress response but are not saved automatically — pass them to the metrics bulk create endpoint to persist. The agent must have a description of at least 100 characters.

Deprecated: POST /test_framework/v3/metrics/generate_metrics/ does this in one call and returns the result.

Request

  • Base URL
    https://api.cekura.ai
  • URL
    https://api.cekura.ai/test_framework/v1/metrics/generate_metrics/
  • Auth
    • API key in header X-CEKURA-API-KEY
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Request body

agent_idinteger

The ID of the AI agent to generate metrics for. Either agent_id or assistant_id must be provided.

assistant_idstring

The assistant ID to generate metrics for. Either agent_id or assistant_id must be provided.

num_metricsinteger

Number of metrics to generate

Response

progress_idstring uuid required

UUID to poll the generate_metrics_progress endpoint for status and results

Changes