test_framework

Simplify metric prompt with AI

Changed on

Rewrite a verbose metric prompt into a minimal version focused on its decision logic. When metric_id names an already-optimized metric whose prompt is unchanged, the stored prompt comes back at once. Usually takes under 30 seconds.

post/test_framework/v3/metrics/simplify_prompt/

Request

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

Request body

original_promptstring required

The verbose prompt to simplify.

metric_idinteger

Metric the prompt belongs to. Optional.

Response

status'completed' | 'failed'

failed when the job could not produce its result; see error / errors.

original_promptstring
metric_idinteger nullable
simplified_promptstring
skipped_simplificationboolean

True when the metric was already optimized and the stored prompt is returned.

errorstring nullable

Why the job failed, when it did.

Changes