IntelligenceX
Class

EasyChatResult

Namespace IntelligenceX.OpenAI
Assembly IntelligenceX
Modifiers sealed

Represents the simplified result of an easy chat call.

Inheritance

  • Object
  • EasyChatResult

Constructors

public EasyChatResult(String text, IReadOnlyList<String> textBlocks, IReadOnlyList<EasyImage> images, TurnInfo turn) #

Initializes a new easy chat result.

Parameters

text System.String
textBlocks System.Collections.Generic.IReadOnlyList{System.String}
images System.Collections.Generic.IReadOnlyList{IntelligenceX.OpenAI.EasyImage}
turn IntelligenceX.OpenAI.AppServer.Models.TurnInfo

Methods

public static EasyChatResult FromTurn(TurnInfo turn) #
Returns: EasyChatResult

Creates an EasyChatResult from a turn.

Parameters

turn IntelligenceX.OpenAI.AppServer.Models.TurnInfo
Turn info to convert.

Properties

public String Text { get; } #

Gets the concatenated text response.

public IReadOnlyList<String> TextBlocks { get; } #

Gets the individual text blocks.

public IReadOnlyList<EasyImage> Images { get; } #

Gets any image outputs.

public TurnInfo Turn { get; } #

Gets the underlying turn information.