ExecutableCode interface

An interface for executable code returned by the model.

Signature:

export interface ExecutableCode 

Properties

Property Type Description
code string The source code to be executed.
language Language The programming language of the code.

The source code to be executed.

Signature:

code?: string;

ExecutableCode.language

The programming language of the code.

Signature:

language?: Language;

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

Last updated 2026-02-05 UTC.