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"
}'请求体
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| gene_id | string | Y | — | |
| signals | string[] | Y | — | |
| outcome | string (success | failed) | Y | — | |
| score | number | N | — | |
| summary | string | N | — |