Skip to content

Commit 3bb9992

Browse files
committed
fix doc style
1 parent 151c3d7 commit 3bb9992

File tree

3 files changed

+24
-18
lines changed

3 files changed

+24
-18
lines changed

common/api-review/vertexai.api.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ export interface BaseParams {
2828

2929
// @public
3030
export enum BlockReason {
31-
// (undocumented)
3231
BLOCKLIST = "BLOCKLIST",
3332
// (undocumented)
3433
OTHER = "OTHER",
35-
// (undocumented)
3634
PROHIBITED_CONTENT = "PROHIBITED_CONTENT",
3735
// (undocumented)
3836
SAFETY = "SAFETY"
@@ -161,21 +159,17 @@ export interface FileDataPart {
161159

162160
// @public
163161
export enum FinishReason {
164-
// (undocumented)
165162
BLOCKLIST = "BLOCKLIST",
166-
// (undocumented)
167163
MALFORMED_FUNCTION_CALL = "MALFORMED_FUNCTION_CALL",
168164
// (undocumented)
169165
MAX_TOKENS = "MAX_TOKENS",
170166
// (undocumented)
171167
OTHER = "OTHER",
172-
// (undocumented)
173168
PROHIBITED_CONTENT = "PROHIBITED_CONTENT",
174169
// (undocumented)
175170
RECITATION = "RECITATION",
176171
// (undocumented)
177172
SAFETY = "SAFETY",
178-
// (undocumented)
179173
SPII = "SPII",
180174
// (undocumented)
181175
STOP = "STOP"

docs-devsite/vertexai.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ export declare enum BlockReason
231231

232232
| Member | Value | Description |
233233
| --- | --- | --- |
234-
| BLOCKLIST | <code>&quot;BLOCKLIST&quot;</code> | |
234+
| BLOCKLIST | <code>&quot;BLOCKLIST&quot;</code> | Content was blocked because it contained terms from the terminology blocklist. |
235235
| OTHER | <code>&quot;OTHER&quot;</code> | |
236-
| PROHIBITED\_CONTENT | <code>&quot;PROHIBITED_CONTENT&quot;</code> | |
236+
| PROHIBITED\_CONTENT | <code>&quot;PROHIBITED_CONTENT&quot;</code> | Content was blocked due to prohibited content. |
237237
| SAFETY | <code>&quot;SAFETY&quot;</code> | |
238238

239239
## FinishReason
@@ -250,14 +250,14 @@ export declare enum FinishReason
250250

251251
| Member | Value | Description |
252252
| --- | --- | --- |
253-
| BLOCKLIST | <code>&quot;BLOCKLIST&quot;</code> | |
254-
| MALFORMED\_FUNCTION\_CALL | <code>&quot;MALFORMED_FUNCTION_CALL&quot;</code> | |
253+
| BLOCKLIST | <code>&quot;BLOCKLIST&quot;</code> | The candidate content contained forbidden terms. |
254+
| MALFORMED\_FUNCTION\_CALL | <code>&quot;MALFORMED_FUNCTION_CALL&quot;</code> | The function call generated by the model was invalid. |
255255
| MAX\_TOKENS | <code>&quot;MAX_TOKENS&quot;</code> | |
256256
| OTHER | <code>&quot;OTHER&quot;</code> | |
257-
| PROHIBITED\_CONTENT | <code>&quot;PROHIBITED_CONTENT&quot;</code> | |
257+
| PROHIBITED\_CONTENT | <code>&quot;PROHIBITED_CONTENT&quot;</code> | The candidate content potentially contained prohibited content. |
258258
| RECITATION | <code>&quot;RECITATION&quot;</code> | |
259259
| SAFETY | <code>&quot;SAFETY&quot;</code> | |
260-
| SPII | <code>&quot;SPII&quot;</code> | |
260+
| SPII | <code>&quot;SPII&quot;</code> | The candidate content potentially contained Sensitive Personally Identifiable Information (SPII). |
261261
| STOP | <code>&quot;STOP&quot;</code> | |
262262

263263
## FunctionCallingMode

packages/vertexai/src/types/enums.ts

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,13 @@ export enum BlockReason {
102102
SAFETY = 'SAFETY',
103103
// Content was blocked, but the reason is uncategorized.
104104
OTHER = 'OTHER',
105-
// Content was blocked because it contained terms from the terminology blocklist.
105+
/**
106+
* Content was blocked because it contained terms from the terminology blocklist.
107+
*/
106108
BLOCKLIST = 'BLOCKLIST',
107-
// Content was blocked due to prohibited content.
109+
/**
110+
* Content was blocked due to prohibited content.
111+
*/
108112
PROHIBITED_CONTENT = 'PROHIBITED_CONTENT'
109113
}
110114

@@ -123,13 +127,21 @@ export enum FinishReason {
123127
RECITATION = 'RECITATION',
124128
// Unknown reason.
125129
OTHER = 'OTHER',
126-
// The candidate content contained forbidden terms.
130+
/**
131+
* The candidate content contained forbidden terms.
132+
*/
127133
BLOCKLIST = 'BLOCKLIST',
128-
// The candidate content potentially contained prohibited content.
134+
/**
135+
* The candidate content potentially contained prohibited content.
136+
*/
129137
PROHIBITED_CONTENT = 'PROHIBITED_CONTENT',
130-
// The candidate content potentially contained Sensitive Personally Identifiable Information (SPII).
138+
/**
139+
* The candidate content potentially contained Sensitive Personally Identifiable Information (SPII).
140+
*/
131141
SPII = 'SPII',
132-
// The function call generated by the model was invalid.
142+
/**
143+
* The function call generated by the model was invalid.
144+
*/
133145
MALFORMED_FUNCTION_CALL = 'MALFORMED_FUNCTION_CALL'
134146
}
135147

0 commit comments

Comments
 (0)