POST
/
test_framework
/
v1
/
runs
/
improve_prompt
/
cURL
curl --request POST \
  --url https://api.cekura.ai/test_framework/v1/runs/improve_prompt/ \
  --header 'Content-Type: application/json' \
  --header 'X-CEKURA-API-KEY: <api-key>' \
  --data '{
  "prompt": "<string>",
  "category_ids": [
    123
  ],
  "workflow_metric_ids": [
    123
  ],
  "run_ids": [
    123
  ]
}'
{
  "improved_prompt": "<string>",
  "summary_of_changes": "<string>"
}

Authorizations

X-CEKURA-API-KEY
string
header
required

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

Body

prompt
string
required

Prompt to improve

run_ids
integer[]
required

List of run IDs to analyze (max 3)

Maximum length: 3
category_ids
integer[]

List of category IDs

workflow_metric_ids
integer[]

List of workflow metric IDs

Response

improved_prompt
string
required

Improved prompt for the AI agent

summary_of_changes
string
required

Summary of changes made to the prompt