IntelligenceX

API Reference

Class

ThreadInfo

Namespace IntelligenceX.OpenAI.AppServer.Models
Assembly IntelligenceX
Modifiers sealed

Represents a chat thread summary.

Inheritance

  • Object
  • ThreadInfo

Constructors

public ThreadInfo(String id, String preview, String modelProvider, Nullable<DateTimeOffset> createdAt, Nullable<DateTimeOffset> updatedAt, JsonObject raw, JsonObject additional, ThreadUsageSummary usageSummary = null) #

Initializes a new thread info model.

Parameters

id System.String requiredposition: 0
preview System.String requiredposition: 1
modelProvider System.String requiredposition: 2
createdAt System.Nullable{System.DateTimeOffset} requiredposition: 3
updatedAt System.Nullable{System.DateTimeOffset} requiredposition: 4
raw IntelligenceX.Json.JsonObject requiredposition: 5
additional IntelligenceX.Json.JsonObject requiredposition: 6
usageSummary IntelligenceX.OpenAI.AppServer.Models.ThreadUsageSummary = null optionalposition: 7

Methods

public static ThreadInfo FromJson(JsonObject threadObj) #
Returns: ThreadInfo

Parses a thread info model from JSON.

Parameters

threadObj IntelligenceX.Json.JsonObject requiredposition: 0
Source JSON object.

Returns

The parsed thread info.

Properties

public String Id { get; } #

Gets the thread id.

public String Preview { get; } #

Gets the preview text.

public String ModelProvider { get; } #

Gets the model provider identifier.

public Nullable<DateTimeOffset> CreatedAt { get; } #

Gets the creation time (UTC).

public Nullable<DateTimeOffset> UpdatedAt { get; } #

Gets the last update time (UTC).

public JsonObject Raw { get; } #

Gets the raw JSON object.

public JsonObject Additional { get; } #

Gets unrecognized fields from the payload.

public ThreadUsageSummary UsageSummary { get; } #

Gets cumulative usage summary when present.