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()