ExecutableCodePart

public final classExecutableCodePart implementsPart


Represents the code that was executed by the model.

Summary

Public fields

final @NonNullString

The source code to be executed.

boolean

Indicates whether the response is a thought.

final @NonNullString

The programming language of the code.

Public constructors

This method is deprecated. Part of the model response.

Public fields

code

public final @NonNullString code

The source code to be executed.

isThought

public boolean isThought

Indicates whether the response is a thought.

language

public final @NonNullString language

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.