Package com.google.genai.types
Class ExecutableCode
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ExecutableCode
Code generated by the model that is meant to be executed, and the result returned to the model.
Generated when using the [FunctionDeclaration] tool and [FunctionCallingConfig] mode is set to
[Mode.CODE].
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutableCode.Builder
builder()
Instantiates a builder for ExecutableCode.code()
Required.static ExecutableCode
Deserializes a JSON string to a ExecutableCode object.language()
Required.abstract ExecutableCode.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
toJson
-
Constructor Details
-
ExecutableCode
public ExecutableCode()
-
-
Method Details
-
code
Required. The code to be executed. -
language
Required. Programming language of the `code`. -
builder
Instantiates a builder for ExecutableCode. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ExecutableCode object.
-