test_framework

Simplify a metric prompt

Changed on

Simplify a metric prompt

post/test_framework/v2/metrics/simplify_prompt/

Request

  • Base URL
    https://api.cekura.ai
  • URL
    https://api.cekura.ai/test_framework/v2/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

Optional metric ID. If provided and metric is already optimized, returns stored instructions instead of simplifying.

Response

simplified_promptstring
original_promptstring
skipped_simplificationboolean
progress_idstring

Returned when async processing is needed. Poll simplify_prompt_progress for result.

Changes