@@ -174,6 +174,39 @@ export interface CitationMetadata {
174
174
citations: Citation [];
175
175
}
176
176
177
+ // @public
178
+ export interface CodeExecutionResult {
179
+ outcome? : Outcome ;
180
+ output? : string ;
181
+ }
182
+
183
+ // @public
184
+ export interface CodeExecutionResultPart {
185
+ // (undocumented)
186
+ codeExecutionResult? : CodeExecutionResult ;
187
+ // (undocumented)
188
+ executableCode? : never ;
189
+ // (undocumented)
190
+ fileData: never ;
191
+ // (undocumented)
192
+ functionCall? : never ;
193
+ // (undocumented)
194
+ functionResponse? : never ;
195
+ // (undocumented)
196
+ inlineData? : never ;
197
+ // (undocumented)
198
+ text? : never ;
199
+ // (undocumented)
200
+ thought? : never ;
201
+ // @internal (undocumented)
202
+ thoughtSignature? : never ;
203
+ }
204
+
205
+ // @public
206
+ export interface CodeExecutionTool {
207
+ codeExecution: {};
208
+ }
209
+
177
210
// @public
178
211
export interface Content {
179
212
// (undocumented)
@@ -237,6 +270,34 @@ export interface ErrorDetails {
237
270
reason? : string ;
238
271
}
239
272
273
+ // @public
274
+ export interface ExecutableCode {
275
+ code? : string ;
276
+ language? : Language ;
277
+ }
278
+
279
+ // @public
280
+ export interface ExecutableCodePart {
281
+ // (undocumented)
282
+ codeExecutionResult? : never ;
283
+ // (undocumented)
284
+ executableCode? : ExecutableCode ;
285
+ // (undocumented)
286
+ fileData: never ;
287
+ // (undocumented)
288
+ functionCall? : never ;
289
+ // (undocumented)
290
+ functionResponse? : never ;
291
+ // (undocumented)
292
+ inlineData? : never ;
293
+ // (undocumented)
294
+ text? : never ;
295
+ // (undocumented)
296
+ thought? : never ;
297
+ // @internal (undocumented)
298
+ thoughtSignature? : never ;
299
+ }
300
+
240
301
// @public
241
302
export interface FileData {
242
303
// (undocumented)
@@ -247,6 +308,10 @@ export interface FileData {
247
308
248
309
// @public
249
310
export interface FileDataPart {
311
+ // (undocumented)
312
+ codeExecutionResult? : never ;
313
+ // (undocumented)
314
+ executableCode? : never ;
250
315
// (undocumented)
251
316
fileData: FileData ;
252
317
// (undocumented)
@@ -308,6 +373,10 @@ export type FunctionCallingMode = (typeof FunctionCallingMode)[keyof typeof Func
308
373
309
374
// @public
310
375
export interface FunctionCallPart {
376
+ // (undocumented)
377
+ codeExecutionResult? : never ;
378
+ // (undocumented)
379
+ executableCode? : never ;
311
380
// (undocumented)
312
381
functionCall: FunctionCall ;
313
382
// (undocumented)
@@ -345,6 +414,10 @@ export interface FunctionResponse {
345
414
346
415
// @public
347
416
export interface FunctionResponsePart {
417
+ // (undocumented)
418
+ codeExecutionResult? : never ;
419
+ // (undocumented)
420
+ executableCode? : never ;
348
421
// (undocumented)
349
422
functionCall? : never ;
350
423
// (undocumented)
@@ -735,6 +808,10 @@ export type InferenceMode = (typeof InferenceMode)[keyof typeof InferenceMode];
735
808
736
809
// @public
737
810
export interface InlineDataPart {
811
+ // (undocumented)
812
+ codeExecutionResult? : never ;
813
+ // (undocumented)
814
+ executableCode? : never ;
738
815
// (undocumented)
739
816
functionCall? : never ;
740
817
// (undocumented)
@@ -755,6 +832,15 @@ export class IntegerSchema extends Schema {
755
832
constructor (schemaParams ? : SchemaParams );
756
833
}
757
834
835
+ // @public
836
+ export const Language: {
837
+ UNSPECIFIED: string ;
838
+ PYTHON: string ;
839
+ };
840
+
841
+ // @public
842
+ export type Language = (typeof Language )[keyof typeof Language ];
843
+
758
844
// @public
759
845
export interface LanguageModelCreateCoreOptions {
760
846
// (undocumented)
@@ -969,7 +1055,18 @@ export interface OnDeviceParams {
969
1055
}
970
1056
971
1057
// @public
972
- export type Part = TextPart | InlineDataPart | FunctionCallPart | FunctionResponsePart | FileDataPart ;
1058
+ export const Outcome: {
1059
+ UNSPECIFIED: string ;
1060
+ OK: string ;
1061
+ FAILED: string ;
1062
+ DEADLINE_EXCEEDED: string ;
1063
+ };
1064
+
1065
+ // @public
1066
+ export type Outcome = (typeof Outcome )[keyof typeof Outcome ];
1067
+
1068
+ // @public
1069
+ export type Part = TextPart | InlineDataPart | FunctionCallPart | FunctionResponsePart | FileDataPart | ExecutableCodePart | CodeExecutionResultPart ;
973
1070
974
1071
// @public
975
1072
export const POSSIBLE_ROLES: readonly [" user" , " model" , " function" , " system" ];
@@ -1179,6 +1276,10 @@ export class StringSchema extends Schema {
1179
1276
1180
1277
// @public
1181
1278
export interface TextPart {
1279
+ // (undocumented)
1280
+ codeExecutionResult? : never ;
1281
+ // (undocumented)
1282
+ executableCode? : never ;
1182
1283
// (undocumented)
1183
1284
functionCall? : never ;
1184
1285
// (undocumented)
@@ -1200,7 +1301,7 @@ export interface ThinkingConfig {
1200
1301
}
1201
1302
1202
1303
// @public
1203
- export type Tool = FunctionDeclarationsTool | GoogleSearchTool ;
1304
+ export type Tool = FunctionDeclarationsTool | GoogleSearchTool | CodeExecutionTool ;
1204
1305
1205
1306
// @public
1206
1307
export interface ToolConfig {
0 commit comments