From 51d1f3bdd76daae9b44e8be0ff6b3251e6ce83a9 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Mon, 28 Oct 2024 08:18:30 -0700 Subject: [PATCH] Adds the canonical `toBuilder` method to the `LlmInferenceOptions` object. PiperOrigin-RevId: 690617797 --- .../mediapipe/tasks/genai/llminference/LlmInference.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mediapipe/tasks/java/com/google/mediapipe/tasks/genai/llminference/LlmInference.java b/mediapipe/tasks/java/com/google/mediapipe/tasks/genai/llminference/LlmInference.java index 9f09ec9128..dba1e5b955 100644 --- a/mediapipe/tasks/java/com/google/mediapipe/tasks/genai/llminference/LlmInference.java +++ b/mediapipe/tasks/java/com/google/mediapipe/tasks/genai/llminference/LlmInference.java @@ -232,6 +232,9 @@ public final LlmInferenceOptions build() { /** The error listener to use for the {@link LlmInference#generateAsync} API. */ public abstract Optional errorListener(); + /** Returns a new builder with the same values as this instance. */ + public abstract Builder toBuilder(); + /** Instantiates a new LlmInferenceOptions builder. */ public static Builder builder() { return new AutoValue_LlmInference_LlmInferenceOptions.Builder()