Skip to content

SystemOneResult

Namespace: TypeSafe.AI.Sdk

public sealed class SystemOneResult

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

Inheritance: object

View source

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

Answers keyed by the same names supplied in the request.

Value: IReadOnlyDictionary<string, Answer>

View source

public string Model { get; init; }

The model used to answer the request.

Value: string

View source

public Usage Usage { get; init; }

Token usage for the request.

Value: Usage

View source

public BoxAnswer GetBox(string name)

Return the named Box answer.

Parameters

Name Type Description
name string

Returns: BoxAnswer

View source

public ChoiceAnswer GetChoice(string name)

Return the named Choice answer.

Parameters

Name Type Description
name string

Returns: ChoiceAnswer

View source

public NoulAnswer GetNoul(string name)

Return the named Noul answer.

Parameters

Name Type Description
name string

Returns: NoulAnswer

View source

public ScoreAnswer GetScore(string name)

Return the named Score answer.

Parameters

Name Type Description
name string

Returns: ScoreAnswer

View source

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

Return the named answer as <code class=“typeparamref”>T</code>.

Type parameters

Name Description
T

Parameters

Name Type Description
name string

Returns: T

View source

MIT · Copyright (c) Dario Kondratiuk. · not affiliated with TypeSafe beyond being a client of the public API