Update Prompt Results
update_prompt_resultsRecord agent execution outcomes to update prompt performance metrics, enabling smarter prompt refinement based on real results.
Instructions
Update prompt performance metrics after agent execution.
Records the outcome of using a refined prompt and updates the prompt's statistics for future refinement decisions.
Scoping Feedback:
Use files_modified and files_added to record which files were actually
touched. This helps the system understand the effective scope of the prompt
and can be used to suggest narrower scopes for similar future tasks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes | Update request with prompt key and results |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| usage_count | Yes | ||
| last_used_at | No | ||
| average_score | Yes |