Retry with ValidationError
injected into follow-up call for standard tool calls (and not just extraction)
#298
Labels
Feature Request
New feature or request
Description
We currently offer support for retrying with the
ValidationError
injected into the follow-up call for extractors. This is fairly straightforward since we know we're looking for a tool.When using tools directly, it's less certain how to implement this; HOWEVER, it would be just as valuable since there is no guarantee the tool is correct the same way it might not be correct for extraction.
Of course, the hope if that through prompt engineering the model will get it correct on the first try, but this is unlikely given the current quality of these models, so having the retry fallback at least provides additional support for better responses while the models improve.
We already support retries, but we don't support injecting the tool. I'm not certain of the interface so this needs to be further fleshed out before work on it can begin.
The text was updated successfully, but these errors were encountered: