CodeExecutionResultPart

public final class CodeExecutionResultPart implements Part


Represents the code execution result from the model.

Summary

Public fields

boolean

Indicates whether the response is a thought.

final @NonNull String

The result of the execution.

final @NonNull String

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

Public constructors

This method is deprecated. Part of the model response.

Public methods

final boolean

Indicates if the code execution was successful

Public fields

isThought

public boolean isThought

Indicates whether the response is a thought.

outcome

public final @NonNull String outcome

The result of the execution.

output

public final @NonNull String output

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

Public constructors

CodeExecutionResultPart

public CodeExecutionResultPart(@NonNull String outcome, @NonNull String output)

Public methods

executionSucceeded

public final boolean executionSucceeded()

Indicates if the code execution was successful