IntelligenceX

API Reference

Class

ThreadInfo

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

Represents a chat thread summary.

Inheritance

  • Object
  • ThreadInfo

Usage

Explore 11 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Constructors

public ThreadInfo(String id, String? preview, String? modelProvider, DateTimeOffset? createdAt, 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.DateTimeOffset? requiredposition: 3
updatedAt 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 DateTimeOffset? CreatedAt { get; } #

Gets the creation time (UTC).

public 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.