Allow agents to retry if a call fails
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3488395. -->
Reported by: [mrdalesmith](https://www.drupal.org/user/2612656)
Related to !17
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>If the call to an LLM fails, the Agent should be able to retry to the call, providing additional context as to why it failed that may help it to succeed.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Two new Exceptions should be added - retryable exception an nonretryable exception - that can be thrown as needed by the validation plugins. Retryable exceptions will be able to provide additional instructions to the LLM to explain the failure that the code can append to the original prompt to try again.</p>
issue