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

Defined in:

gemini.cr

Enum Members

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 Method Summary

Instance Method Detail

def outcome_deadline_exceeded? #

Returns true if this enum value equals OutcomeDeadlineExceeded


[View source]
def outcome_failed? #

Returns true if this enum value equals OutcomeFailed


[View source]
def outcome_ok? #

Returns true if this enum value equals OutcomeOK


[View source]
def outcome_unspecified? #

Returns true if this enum value equals OutcomeUnspecified


[View source]