Currently handlers.llm.providers includes a somewhat half-baked handler for retrying failed Template calls. It's not clear that what we have implemented is semantically correct, and it's certainly not full-featured. Rather than handling Template.__apply__ with a catch-all RetryHandler, we should use LiteLLM's built-in functionality for retrying failed API calls, and handle other failure modes (e.g. failed tool calls or structured outputs) separately.
Currently
handlers.llm.providersincludes a somewhat half-baked handler for retrying failedTemplatecalls. It's not clear that what we have implemented is semantically correct, and it's certainly not full-featured. Rather than handlingTemplate.__apply__with a catch-allRetryHandler, we should use LiteLLM's built-in functionality for retrying failed API calls, and handle other failure modes (e.g. failed tool calls or structured outputs) separately.