Package com.google.genai.types
Class ToolCodeExecution
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ToolCodeExecution
Tool that executes code generated by the model, and automatically returns the result to the
model. See also ExecutableCode and CodeExecutionResult, which are input and output to this tool.
This data type is not supported in Gemini API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ToolCodeExecution. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolCodeExecution.Builderbuilder()Instantiates a builder for ToolCodeExecution.static ToolCodeExecutionDeserializes a JSON string to a ToolCodeExecution object.abstract ToolCodeExecution.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
ToolCodeExecution
public ToolCodeExecution()
-
-
Method Details
-
builder
Instantiates a builder for ToolCodeExecution. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ToolCodeExecution object.
-