Table of Contents

Class TriggerExecutionStatuses

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Known trigger execution statuses.

public static class TriggerExecutionStatuses
Inheritance
TriggerExecutionStatuses
Inherited Members

Fields

Completed

The run completed.

public const string Completed = "completed"

Field Value

string

Failed

The run failed.

public const string Failed = "failed"

Field Value

string

InProgress

The run is in progress.

public const string InProgress = "in_progress"

Field Value

string

Skipped

The run was skipped.

public const string Skipped = "skipped"

Field Value

string

TimedOut

The run timed out.

public const string TimedOut = "timed_out"

Field Value

string

Methods

IsTerminal(string?)

Returns whether status is a terminal status (anything but InProgress).

public static bool IsTerminal(string? status)

Parameters

status string

The status.

Returns

bool

true if the run has finished.