enum

Google::GenerativeAI::Content::CodeExecutionResult::Outcome

Inherits Enum < Comparable < Value < Object

Constants

OutcomeUnspecified = 0

Unspecified status. This value should not be used.

OutcomeOK = 1

Code execution completed successfully.

OutcomeFailed = 2
Code execution finished but with a failure. stderr should contain

the reason.

OutcomeDeadlineExceeded = 3

Code execution ran for too long, and was cancelled. There may or may not be a partial output present.

Instance methods

outcome_deadline_exceeded?

Returns true if this enum value equals OutcomeDeadlineExceeded

Source
outcome_failed?

Returns true if this enum value equals OutcomeFailed

Source
outcome_ok?

Returns true if this enum value equals OutcomeOK

Source
outcome_unspecified?

Returns true if this enum value equals OutcomeUnspecified

Source