ExecutableCode interface

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

An interface for executable code returned by the model.

Signature:

exportinterfaceExecutableCode

Properties

PropertyTypeDescription
codestring(Public Preview) The source code to be executed.
languageLanguage(Public Preview) The programming language of the code.

ExecutableCode.code

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

The source code to be executed.

Signature:

code?:string;

ExecutableCode.language

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

The programming language of the code.

Signature:

language?:Language;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-09 UTC.