IntelligenceX
Class

TreatmentResult

IntelligenceX.Treatment

Namespace
IntelligenceX.Treatment
Assembly
IntelligenceX
Modifiers
sealed

Result returned by a treatment provider.

Inheritance

  • object
  • TreatmentResult

Usage

Explore 3 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.

Constructors

public TreatmentResult(string id, string? status, string? text, JsonValue? json, IReadOnlyList<TreatmentAsset>? assets, object? raw, IReadOnlyDictionary<string, string>? metadata = null) #

Initializes a new treatment result.

Parameters

id string required
status string? required
text string? required
json IntelligenceX.Json.JsonValue? required
assets System.Collections.Generic.IReadOnlyList<IntelligenceX.Treatment.TreatmentAsset>? required
raw object? required
metadata System.Collections.Generic.IReadOnlyDictionary<string, string>? = null optional

Properties

public string Id { get; } #

Treatment result id.

public string? Status { get; } #

Provider status.

public string? Text { get; } #

Aggregated text output.

public JsonValue? Json { get; } #

Parsed JSON output when available.

public JsonObject? JsonObject { get; } #

Parsed JSON object output when the provider returned an object.

public IReadOnlyList<TreatmentAsset> Assets { get; } #

Assets generated or selected during treatment.

public object? Raw { get; } #

Raw provider result.

public IReadOnlyDictionary<string, string> Metadata { get; } #

Metadata attached by the caller or provider.