It’s just for network errors. We don’t retry by default for parsing/constraint errors because of the high likelihood that the new LLM call will produce the same faulty response. But if you find that the randomness in the LLM is high enough that retries can give you success, it’s maybe worth retrying in your client. And if you know the nature of the failure, when you retry, you may want to do so with an adjusted context, like extra text in the prompt that you set after a failure to guide the model toward correct answers.