RetryPredicate
Decides whether the model may retry a failed tool call.
Functions
Link copied to clipboard
abstract fun isRetryable(context: ToolContext, tool: BaseTool, args: Map<String, Any?>, error: Any): Boolean
Returns false if retrying cannot fix error, such as a permanent client error.