Skip to content

Commit f16b2e7

Browse files
yyyu-googlecopybara-github
authored andcommitted
fix: update finish reason enum list to be complete
PiperOrigin-RevId: 616876997
1 parent 722b7fd commit f16b2e7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/types/content.ts

+15
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,21 @@ export enum FinishReason {
441441
RECITATION = 'RECITATION',
442442
/** All other reasons that stopped the token generation. */
443443
OTHER = 'OTHER',
444+
/**
445+
* The token generation was stopped as the response was flagged for the
446+
* terms which are included from the terminology blocklist.
447+
*/
448+
BLOCKLIST = 'BLOCKLIST',
449+
/**
450+
* The token generation was stopped as the response was flagged for
451+
* the prohibited contents.
452+
*/
453+
PROHIBITED_CONTENT = 'PROHIBITED_CONTENT',
454+
/**
455+
* The token generation was stopped as the response was flagged for
456+
* Sensitive Personally Identifiable Information (SPII) contents.
457+
*/
458+
SPII = 'SPII',
444459
}
445460

446461
/**

0 commit comments

Comments
 (0)