Table of Contents

Class InteractionStatuses

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Known values of Status. The API may return values that are not listed here, so the status is exposed as a string.

public static class InteractionStatuses
Inheritance
InteractionStatuses
Inherited Members

Fields

BudgetExceeded

The interaction stopped because its budget was exceeded.

public const string BudgetExceeded = "budget_exceeded"

Field Value

string

Cancelled

The interaction was cancelled.

public const string Cancelled = "cancelled"

Field Value

string

Completed

The interaction completed successfully.

public const string Completed = "completed"

Field Value

string

Failed

The interaction failed.

public const string Failed = "failed"

Field Value

string

InProgress

The interaction is still running.

public const string InProgress = "in_progress"

Field Value

string

Incomplete

The interaction finished without completing.

public const string Incomplete = "incomplete"

Field Value

string

Queued

The interaction is queued and has not started yet.

public const string Queued = "queued"

Field Value

string

RequiresAction

The interaction is waiting for the client (for example, for function results).

public const string RequiresAction = "requires_action"

Field Value

string

RequiresContinuation

The per-request decode limit was reached. Pass ContinuationToken back to create a continuation (see InteractionsClient.ContinueAsync).

public const string RequiresContinuation = "requires_continuation"

Field Value

string

Methods

IsRunning(string?)

Returns true when the status means the server is still working on the interaction (InProgress, Queued, or no status).

public static bool IsRunning(string? status)

Parameters

status string

The status to check.

Returns

bool

true when the interaction is still running.