ExecutableCodePart

public final class ExecutableCodePart implements Part


Represents the code that was executed by the model.

Summary

Public fields

final @NonNull String

The source code to be executed.

boolean

Indicates whether the response is a thought.

final @NonNull String

The programming language of the code.

Public constructors

This method is deprecated. Part of the model response.

Public fields

code

public final @NonNull String code

The source code to be executed.

isThought

public boolean isThought

Indicates whether the response is a thought.

language

public final @NonNull String language

The programming language of the code.

Public constructors

ExecutableCodePart

public ExecutableCodePart(@NonNull String language, @NonNull String code)