Skip to content

Commit 26c3c35

Browse files
matthew29tangcopybara-github
authored andcommitted
feat: Add IMAGE_RECITATION and IMAGE_OTHER enum values to FinishReason
PiperOrigin-RevId: 842873675
1 parent d1ca685 commit 26c3c35

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/com/google/genai/types/FinishReason.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,13 @@ public enum Known {
8181
IMAGE_PROHIBITED_CONTENT,
8282

8383
/** The model was expected to generate an image, but none was generated. */
84-
NO_IMAGE
84+
NO_IMAGE,
85+
86+
/** Image generation stopped because the generated image may be a recitation from a source. */
87+
IMAGE_RECITATION,
88+
89+
/** Image generation stopped for a reason not otherwise specified. */
90+
IMAGE_OTHER
8591
}
8692

8793
private Known finishReasonEnum;

0 commit comments

Comments
 (0)