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
Cancelled
The interaction was cancelled.
public const string Cancelled = "cancelled"
Field Value
Completed
The interaction completed successfully.
public const string Completed = "completed"
Field Value
Failed
The interaction failed.
public const string Failed = "failed"
Field Value
InProgress
The interaction is still running.
public const string InProgress = "in_progress"
Field Value
Incomplete
The interaction finished without completing.
public const string Incomplete = "incomplete"
Field Value
Queued
The interaction is queued and has not started yet.
public const string Queued = "queued"
Field Value
RequiresAction
The interaction is waiting for the client (for example, for function results).
public const string RequiresAction = "requires_action"
Field Value
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
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
statusstringThe status to check.
Returns
- bool
truewhen the interaction is still running.