Package com.google.genai.types
Class CodeExecutionResult
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.CodeExecutionResult
Result of executing the [ExecutableCode]. Only generated when using the [CodeExecution] tool, and
always follows a `part` containing the [ExecutableCode].
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for CodeExecutionResult. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CodeExecutionResult.Builder
builder()
Instantiates a builder for CodeExecutionResult.static CodeExecutionResult
Deserializes a JSON string to a CodeExecutionResult object.outcome()
Required.output()
Optional.abstract CodeExecutionResult.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
CodeExecutionResult
public CodeExecutionResult()
-
-
Method Details
-
outcome
Required. Outcome of the code execution. -
output
Optional. Contains stdout when code execution is successful, stderr or other description otherwise. -
builder
Instantiates a builder for CodeExecutionResult. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a CodeExecutionResult object.
-