Table of Contents

Enum Outcome

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Enumeration of possible outcomes of the code execution.

[JsonConverter(typeof(JsonStringEnumConverter<Outcome>))]
public enum Outcome
Extension Methods

Fields

OUTCOME_UNSPECIFIED = 0

Unspecified status. This value should not be used.

OUTCOME_OK = 1

Code execution completed successfully.

OUTCOME_FAILED = 2

Code execution finished but with a failure. stderr should contain the reason.

OUTCOME_DEADLINE_EXCEEDED = 3

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

See Also