retry_on_error
Record a failed model call for a chunk and receive retry guidance based on attempt count to decide whether to retry or escalate.
Instructions
Record a failed attempt for a chunk and get retry guidance.
Call this when a model call fails (e.g. 500 error). Sprout tracks retry count and tells you whether to retry or escalate.
Args: chunk_id: The chunk ID that failed error_message: The error message from the failed attempt
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chunk_id | Yes | ||
| error_message | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |