toRetryingClient
fun LLMClient.toRetryingClient(retryConfig: RetryConfig = RetryConfig.DEFAULT): RetryingLLMClient(source)
Converts an instance of LLMClient into a retrying client with customizable retry behavior.
Return
A new instance of RetryingLLMClient that adds retry logic to the provided client.
Parameters
retryConfig
Configuration for retry behavior. Defaults to RetryConfig.DEFAULT.