@@ -152,7 +152,7 @@ export declare interface GenerationConfig {
152
152
temperature ?: number ;
153
153
/** Optional. If specified, nucleus sampling will be used. */
154
154
topP ?: number ;
155
- /** Optional. If specified, top-k sampling will be used. */
155
+ /** Optional. If specified, topK sampling will be used. */
156
156
topK ?: number ;
157
157
}
158
158
@@ -248,8 +248,8 @@ export declare interface Content {
248
248
* A part of a turn in a conversation with the model with a fixed MIME type.
249
249
* It has one of the following mutually exclusive fields:
250
250
* 1. text
251
- * 2. inline_data
252
- * 3. file_data
251
+ * 2. inlineData
252
+ * 3. fileData
253
253
* 4. functionResponse
254
254
* 5. functionCall
255
255
*/
@@ -263,9 +263,9 @@ export interface BasePart {}
263
263
export interface TextPart extends BasePart {
264
264
/** Only this property is expected for TextPart. */
265
265
text : string ;
266
- /** inline_data is not expected for TextPart. */
266
+ /** inlineData is not expected for TextPart. */
267
267
inlineData ?: never ;
268
- /** file_data is not expected for TextPart. */
268
+ /** fileData is not expected for TextPart. */
269
269
fileData ?: never ;
270
270
/** functionResponse is not expected for TextPart. */
271
271
functionResponse ?: never ;
@@ -281,7 +281,7 @@ export interface InlineDataPart extends BasePart {
281
281
text ?: never ;
282
282
/** Only this property is expected for InlineDataPart. */
283
283
inlineData : GenerativeContentBlob ;
284
- /** file_data is not expected for InlineDataPart. */
284
+ /** fileData is not expected for InlineDataPart. */
285
285
fileData ?: never ;
286
286
/** functionResponse is not expected for InlineDataPart. */
287
287
functionResponse ?: never ;
@@ -305,7 +305,7 @@ export interface FileData {
305
305
export interface FileDataPart extends BasePart {
306
306
/** text is not expected for FileDataPart. */
307
307
text ?: never ;
308
- /** inline_data is not expected for FileDataPart. */
308
+ /** inlineData is not expected for FileDataPart. */
309
309
inlineData ?: never ;
310
310
/** Only this property is expected for FileDataPart. */
311
311
fileData : FileData ;
@@ -321,9 +321,9 @@ export interface FileDataPart extends BasePart {
321
321
export interface FunctionResponsePart extends BasePart {
322
322
/** text is not expected for FunctionResponsePart. */
323
323
text ?: never ;
324
- /** inline_data is not expected for FunctionResponsePart. */
324
+ /** inlineData is not expected for FunctionResponsePart. */
325
325
inlineData ?: never ;
326
- /** file_data is not expected for FunctionResponsePart. */
326
+ /** fileData is not expected for FunctionResponsePart. */
327
327
fileData ?: never ;
328
328
/** Only this property is expected for FunctionResponsePart. */
329
329
functionResponse : FunctionResponse ;
@@ -337,9 +337,9 @@ export interface FunctionResponsePart extends BasePart {
337
337
export interface FunctionCallPart extends BasePart {
338
338
/** text is not expected for FunctionCallPart. */
339
339
text ?: never ;
340
- /** inline_data is not expected for FunctionCallPart. */
340
+ /** inlineData is not expected for FunctionCallPart. */
341
341
inlineData ?: never ;
342
- /** file_data is not expected for FunctionCallPart. */
342
+ /** fileData is not expected for FunctionCallPart. */
343
343
fileData ?: never ;
344
344
/** functionResponse is not expected for FunctionCallPart. */
345
345
functionResponse ?: never ;
@@ -353,8 +353,8 @@ export interface FunctionCallPart extends BasePart {
353
353
* InlineDataPart}, {@link FileDataPart}, and {@link FunctionResponsePart}. A
354
354
* `Part` has one of the following mutually exclusive fields:
355
355
* 1. text
356
- * 2. inline_data
357
- * 3. file_data
356
+ * 2. inlineData
357
+ * 3. fileData
358
358
* 4. functionResponse
359
359
*/
360
360
export declare type Part =
@@ -470,8 +470,7 @@ export declare interface GenerateContentResult {
470
470
}
471
471
472
472
/**
473
- * Wrapper for respones from a generateContent method when `steam` parameter is
474
- * `true`.
473
+ * Wrapper for respones from a generateContentStream method.
475
474
*/
476
475
export declare interface StreamGenerateContentResult {
477
476
/** Promise of {@link GenerateContentResponse}. */
@@ -705,8 +704,8 @@ export declare interface FunctionDeclarationsTool {
705
704
* Optional. One or more function declarations
706
705
* to be passed to the model along with the current user query. Model may
707
706
* 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
710
709
* function call in the next turn. Based on the function responses, Model will
711
710
* generate the final response back to the user. Maximum 64 function
712
711
* declarations can be provided.
0 commit comments