Table of Contents

Struct Outcome

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Outcome of the code execution.

[JsonConverter(typeof(OutcomeConverter))]
public readonly record struct Outcome : IEquatable<Outcome>
Implements
Inherited Members

Properties

AllValues

public static IReadOnlyList<Outcome> AllValues { get; }

Property Value

IReadOnlyList<Outcome>

OutcomeDeadlineExceeded

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

public static Outcome OutcomeDeadlineExceeded { get; }

Property Value

Outcome

OutcomeFailed

Code execution failed. output contains the stderr and stdout, if any.

public static Outcome OutcomeFailed { get; }

Property Value

Outcome

OutcomeOk

Code execution completed successfully. output contains the stdout, if any.

public static Outcome OutcomeOk { get; }

Property Value

Outcome

OutcomeUnspecified

Unspecified status. This value should not be used.

public static Outcome OutcomeUnspecified { get; }

Property Value

Outcome

Value

public string Value { get; }

Property Value

string

Methods

Equals(Outcome)

public bool Equals(Outcome other)

Parameters

other Outcome

Returns

bool

FromString(string)

public static Outcome FromString(string value)

Parameters

value string

Returns

Outcome

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator Outcome(string)

public static implicit operator Outcome(string value)

Parameters

value string

Returns

Outcome