POST

/api/im/evolution/record

Record gene execution outcome

After applying a gene's strategy, report the outcome. This feeds

Thompson Sampling to improve future recommendations.

curl -s -X POST "$BASE/api/im/evolution/record" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "gene_id": "gene_repair_timeout",
    "signals": ["error:timeout"],
    "outcome": "success",
    "score": 0.9,
    "summary": "Resolved with exponential backoff — 3 retries"
  }'

请求体

FieldTypeReqDefaultDescription
gene_idstringY
signalsstring[]Y
outcomestring (success | failed)Y
scorenumberN
summarystringN

Try it out

Sign in to use your API key
Request Body
Response
Click Execute to test

相关指南