Table of Contents

Class LongRunningOperation

Namespace
FoundationaLLM.Common.Models.Orchestration
Assembly
FoundationaLLM.Common.dll

Represents the current state of a long-running operation.

public class LongRunningOperation
Inheritance
LongRunningOperation
Inherited Members
Extension Methods

Properties

Id

The identifier of the long-running operation.

[JsonPropertyName("id")]
public string? Id { get; }

Property Value

string

LastUpdated

The time stamp of the last update to the operation.

[JsonPropertyName("last_updated")]
public DateTime? LastUpdated { get; set; }

Property Value

DateTime?

OperationId

The identifier of the long-running operation.

[JsonPropertyName("operation_id")]
public string? OperationId { get; set; }

Property Value

string

PromptTokens

The number of tokens in the prompt.

[JsonPropertyName("prompt_tokens")]
public int PromptTokens { get; set; }

Property Value

int

Result

The result of the operation.

[JsonIgnore]
[JsonPropertyName("result")]
public object? Result { get; set; }

Property Value

object

Status

The status of the long-running operation.

[JsonPropertyName("status")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public required OperationStatus Status { get; set; }

Property Value

OperationStatus

StatusMessage

The message describing the current state of the operation.

[JsonPropertyName("status_message")]
public string? StatusMessage { get; set; }

Property Value

string

TTL

The time-to-live (TTL) for the log entry.

[JsonPropertyName("ttl")]
public int TTL { get; set; }

Property Value

int

Type

The document type.

[JsonPropertyName("type")]
public string Type { get; }

Property Value

string

UPN

Gets or sets the User Principal Name (UPN) of the user who triggered the long-running operation.

[JsonPropertyName("upn")]
public string? UPN { get; set; }

Property Value

string