CodeExecutionResultPart

Represents the code execution result from the model.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val isThought: Boolean

Indicates whether the response is a thought.

Link copied to clipboard

The result of the execution.

Link copied to clipboard

The stdout from the code execution, or an error message if it failed.

Link copied to clipboard

Functions

Link copied to clipboard

Returns the part as a FileDataPart if it represents a file, and null otherwise

Link copied to clipboard

Returns the part as a InlineDataPart if it represents inline data, and null otherwise

Link copied to clipboard

Returns the part as a String if it represents text, and null otherwise

Link copied to clipboard

Indicates if the code execution was successful