record_edit_outcome
Record whether the user accepted, reverted, or retried an AI edit.
Instructions
Record whether the user accepted, reverted, or retried an AI edit.
STRONG signal: user behavior directly indicates whether the generated code was successful.
Args: request_id: the "request_id" field from the optimize_context response outcome: "accepted", "reverted", or "retried" files_modified: number of files touched by the edit
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"request_id": "<request_id>",
"outcome": "<outcome>"
},
"name": "record_edit_outcome"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome | Yes | ||
| request_id | Yes | ||
| files_modified | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |