Skip to content

Commit 5893581

Browse files
yyyu-googlecopybara-github
authored andcommitted
fix: replace snake_case in docs to camelCase
PiperOrigin-RevId: 620009126
1 parent 7200249 commit 5893581

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

src/types/content.ts

+16-17
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export declare interface GenerationConfig {
152152
temperature?: number;
153153
/** Optional. If specified, nucleus sampling will be used. */
154154
topP?: number;
155-
/** Optional. If specified, top-k sampling will be used. */
155+
/** Optional. If specified, topK sampling will be used. */
156156
topK?: number;
157157
}
158158

@@ -248,8 +248,8 @@ export declare interface Content {
248248
* A part of a turn in a conversation with the model with a fixed MIME type.
249249
* It has one of the following mutually exclusive fields:
250250
* 1. text
251-
* 2. inline_data
252-
* 3. file_data
251+
* 2. inlineData
252+
* 3. fileData
253253
* 4. functionResponse
254254
* 5. functionCall
255255
*/
@@ -263,9 +263,9 @@ export interface BasePart {}
263263
export interface TextPart extends BasePart {
264264
/** Only this property is expected for TextPart. */
265265
text: string;
266-
/** inline_data is not expected for TextPart. */
266+
/** inlineData is not expected for TextPart. */
267267
inlineData?: never;
268-
/** file_data is not expected for TextPart. */
268+
/** fileData is not expected for TextPart. */
269269
fileData?: never;
270270
/** functionResponse is not expected for TextPart. */
271271
functionResponse?: never;
@@ -281,7 +281,7 @@ export interface InlineDataPart extends BasePart {
281281
text?: never;
282282
/** Only this property is expected for InlineDataPart. */
283283
inlineData: GenerativeContentBlob;
284-
/** file_data is not expected for InlineDataPart. */
284+
/** fileData is not expected for InlineDataPart. */
285285
fileData?: never;
286286
/** functionResponse is not expected for InlineDataPart. */
287287
functionResponse?: never;
@@ -305,7 +305,7 @@ export interface FileData {
305305
export interface FileDataPart extends BasePart {
306306
/** text is not expected for FileDataPart. */
307307
text?: never;
308-
/** inline_data is not expected for FileDataPart. */
308+
/** inlineData is not expected for FileDataPart. */
309309
inlineData?: never;
310310
/** Only this property is expected for FileDataPart. */
311311
fileData: FileData;
@@ -321,9 +321,9 @@ export interface FileDataPart extends BasePart {
321321
export interface FunctionResponsePart extends BasePart {
322322
/** text is not expected for FunctionResponsePart. */
323323
text?: never;
324-
/** inline_data is not expected for FunctionResponsePart. */
324+
/** inlineData is not expected for FunctionResponsePart. */
325325
inlineData?: never;
326-
/** file_data is not expected for FunctionResponsePart. */
326+
/** fileData is not expected for FunctionResponsePart. */
327327
fileData?: never;
328328
/** Only this property is expected for FunctionResponsePart. */
329329
functionResponse: FunctionResponse;
@@ -337,9 +337,9 @@ export interface FunctionResponsePart extends BasePart {
337337
export interface FunctionCallPart extends BasePart {
338338
/** text is not expected for FunctionCallPart. */
339339
text?: never;
340-
/** inline_data is not expected for FunctionCallPart. */
340+
/** inlineData is not expected for FunctionCallPart. */
341341
inlineData?: never;
342-
/** file_data is not expected for FunctionCallPart. */
342+
/** fileData is not expected for FunctionCallPart. */
343343
fileData?: never;
344344
/** functionResponse is not expected for FunctionCallPart. */
345345
functionResponse?: never;
@@ -353,8 +353,8 @@ export interface FunctionCallPart extends BasePart {
353353
* InlineDataPart}, {@link FileDataPart}, and {@link FunctionResponsePart}. A
354354
* `Part` has one of the following mutually exclusive fields:
355355
* 1. text
356-
* 2. inline_data
357-
* 3. file_data
356+
* 2. inlineData
357+
* 3. fileData
358358
* 4. functionResponse
359359
*/
360360
export declare type Part =
@@ -470,8 +470,7 @@ export declare interface GenerateContentResult {
470470
}
471471

472472
/**
473-
* Wrapper for respones from a generateContent method when `steam` parameter is
474-
* `true`.
473+
* Wrapper for respones from a generateContentStream method.
475474
*/
476475
export declare interface StreamGenerateContentResult {
477476
/** Promise of {@link GenerateContentResponse}. */
@@ -705,8 +704,8 @@ export declare interface FunctionDeclarationsTool {
705704
* Optional. One or more function declarations
706705
* to be passed to the model along with the current user query. Model may
707706
* decide to call a subset of these functions by populating
708-
* [FunctionCall][content.part.function_call] in the response. User should
709-
* provide a [FunctionResponse][content.part.function_response] for each
707+
* [FunctionCall][content.part.functionCall] in the response. User should
708+
* provide a [FunctionResponse][content.part.functionResponse] for each
710709
* function call in the next turn. Based on the function responses, Model will
711710
* generate the final response back to the user. Maximum 64 function
712711
* declarations can be provided.

0 commit comments

Comments
 (0)