CodeExecutionResult

@Serializable
data class CodeExecutionResult(val outcome: Outcome? = null, val output: String? = null, val id: String? = null)

Result of executing the ExecutableCode. Generated only when the CodeExecution tool is used.

Constructors

Link copied to clipboard
constructor(outcome: Outcome? = null, output: String? = null, id: String? = null)

Properties

Link copied to clipboard
val id: String? = null

Optional. The identifier of the ExecutableCode part this result is for. Only populated if the corresponding ExecutableCode has an id. This field is not supported in Vertex AI.

Link copied to clipboard
val outcome: Outcome? = null

Required. Outcome of the code execution.

Link copied to clipboard
val output: String? = null

Optional. Contains stdout when code execution is successful, stderr or other description otherwise.