@@ -174,6 +174,39 @@ export interface CitationMetadata {
174174 citations: Citation [];
175175}
176176
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+
177210// @public
178211export interface Content {
179212 // (undocumented)
@@ -237,6 +270,34 @@ export interface ErrorDetails {
237270 reason? : string ;
238271}
239272
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+
240301// @public
241302export interface FileData {
242303 // (undocumented)
@@ -247,6 +308,10 @@ export interface FileData {
247308
248309// @public
249310export interface FileDataPart {
311+ // (undocumented)
312+ codeExecutionResult? : never ;
313+ // (undocumented)
314+ executableCode? : never ;
250315 // (undocumented)
251316 fileData: FileData ;
252317 // (undocumented)
@@ -308,6 +373,10 @@ export type FunctionCallingMode = (typeof FunctionCallingMode)[keyof typeof Func
308373
309374// @public
310375export interface FunctionCallPart {
376+ // (undocumented)
377+ codeExecutionResult? : never ;
378+ // (undocumented)
379+ executableCode? : never ;
311380 // (undocumented)
312381 functionCall: FunctionCall ;
313382 // (undocumented)
@@ -345,6 +414,10 @@ export interface FunctionResponse {
345414
346415// @public
347416export interface FunctionResponsePart {
417+ // (undocumented)
418+ codeExecutionResult? : never ;
419+ // (undocumented)
420+ executableCode? : never ;
348421 // (undocumented)
349422 functionCall? : never ;
350423 // (undocumented)
@@ -735,6 +808,10 @@ export type InferenceMode = (typeof InferenceMode)[keyof typeof InferenceMode];
735808
736809// @public
737810export interface InlineDataPart {
811+ // (undocumented)
812+ codeExecutionResult? : never ;
813+ // (undocumented)
814+ executableCode? : never ;
738815 // (undocumented)
739816 functionCall? : never ;
740817 // (undocumented)
@@ -755,6 +832,15 @@ export class IntegerSchema extends Schema {
755832 constructor (schemaParams ? : SchemaParams );
756833}
757834
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+
758844// @public
759845export interface LanguageModelCreateCoreOptions {
760846 // (undocumented)
@@ -969,7 +1055,18 @@ export interface OnDeviceParams {
9691055}
9701056
9711057// @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 ;
9731070
9741071// @public
9751072export const POSSIBLE_ROLES: readonly [" user" , " model" , " function" , " system" ];
@@ -1179,6 +1276,10 @@ export class StringSchema extends Schema {
11791276
11801277// @public
11811278export interface TextPart {
1279+ // (undocumented)
1280+ codeExecutionResult? : never ;
1281+ // (undocumented)
1282+ executableCode? : never ;
11821283 // (undocumented)
11831284 functionCall? : never ;
11841285 // (undocumented)
@@ -1200,7 +1301,7 @@ export interface ThinkingConfig {
12001301}
12011302
12021303// @public
1203- export type Tool = FunctionDeclarationsTool | GoogleSearchTool ;
1304+ export type Tool = FunctionDeclarationsTool | GoogleSearchTool | CodeExecutionTool ;
12041305
12051306// @public
12061307export interface ToolConfig {
0 commit comments