Table of Contents

Class SystemOneResult

Namespace
TypeSafe.AI.Sdk
Assembly
TypeSafe.AI.Sdk.dll

Answers keyed by question name, with model and usage metadata.

public sealed class SystemOneResult
Inheritance
SystemOneResult
Inherited Members

Properties

Answers

Answers keyed by the same names supplied in the request.

public IReadOnlyDictionary<string, Answer> Answers { get; init; }

Property Value

IReadOnlyDictionary<string, Answer>

Model

The model used to answer the request.

public string Model { get; init; }

Property Value

string

Usage

Token usage for the request.

public Usage Usage { get; init; }

Property Value

Usage

Methods

GetChoice(string)

Return the named Choice answer.

public ChoiceAnswer GetChoice(string name)

Parameters

name string

Returns

ChoiceAnswer

GetNoul(string)

Return the named Noul answer.

public NoulAnswer GetNoul(string name)

Parameters

name string

Returns

NoulAnswer

GetScore(string)

Return the named Score answer.

public ScoreAnswer GetScore(string name)

Parameters

name string

Returns

ScoreAnswer

Get<T>(string)

Return the named answer as T.

public T Get<T>(string name) where T : Answer

Parameters

name string

Returns

T

Type Parameters

T