ExecutableCodePart

classExecutableCodePart :Part


Represents the code that was executed by the model.

Summary

Public constructors

ExecutableCodePart(language: String, code: String)

This function is deprecated. Part of the model response.

Public properties

String

The source code to be executed.

openBoolean

Indicates whether the response is a thought.

String

The programming language of the code.

Public properties

code

val codeString

The source code to be executed.

isThought

open val isThoughtBoolean

Indicates whether the response is a thought.

language

val languageString

The programming language of the code.

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-09-18 UTC.