enum
Google::GenerativeAI::Content::CodeExecutionResult::Outcome
Defined in:
gemini.crEnum 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
-
#outcome_deadline_exceeded?
Returns
trueif this enum value equalsOutcomeDeadlineExceeded -
#outcome_failed?
Returns
trueif this enum value equalsOutcomeFailed -
#outcome_ok?
Returns
trueif this enum value equalsOutcomeOK -
#outcome_unspecified?
Returns
trueif this enum value equalsOutcomeUnspecified