Tool Call Repair Function
typealias ToolCallRepairFunction<TContext> = suspend (failedCall: ContentPart.ToolCall, error: Throwable, messages: List<ModelMessage>, tools: ToolSet<TContext>) -> ContentPart.ToolCall?(source)
Callback invoked when a tool call's JSON arguments fail to decode. Return a corrected ContentPart.ToolCall to retry, or null to give up. Mirrors v6's experimental_repairToolCall.