IntelligenceX

API Reference

Class

TreatmentResult

Namespace IntelligenceX.Treatment
Assembly IntelligenceX
Modifiers sealed

Result returned by a treatment provider.

Inheritance

  • Object
  • TreatmentResult

Usage

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 System.String requiredposition: 0
status System.String requiredposition: 1
text System.String requiredposition: 2
json IntelligenceX.Json.JsonValue requiredposition: 3
assets System.Collections.Generic.IReadOnlyList{IntelligenceX.Treatment.TreatmentAsset} requiredposition: 4
raw System.Object requiredposition: 5
metadata System.Collections.Generic.IReadOnlyDictionary{System.String,System.String} = null optionalposition: 6

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.