Table of Contents

Class SupportAnswer

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

What an assistant had to say about a case.

public record SupportAnswer : IEquatable<SupportAnswer>
Inheritance
SupportAnswer
Implements
Inherited Members

Remarks

A record with no Body is a decline, and Reason says why in terms a person reading the case can use. Both outcomes are ordinary, so neither throws.

Properties

Answered

True when there is an answer to append.

public bool Answered { get; }

Property Value

bool

Body

The answer to append to the case, or null when the assistant declined.

public string Body { get; init; }

Property Value

string

Calls

The service calls the assistant made to answer, in order; kept with the answer as AssistantCalls.

public SupportAssistantCall[] Calls { get; init; }

Property Value

SupportAssistantCall[]

Gaps

What the person asked for that the assistant had no way to do, in its own words, whether it answered or not.

public string[] Gaps { get; init; }

Property Value

string[]

Remarks

Kept on the case for the people who build the assistant, as AssistantGaps.

Reason

Why the assistant declined, or null when it answered.

public string Reason { get; init; }

Property Value

string

Usage

The tokens the model reported for the answer, or null when it reported none; kept as AssistantUsage.

public SupportAssistantUsage Usage { get; init; }

Property Value

SupportAssistantUsage

Methods

Declined(string)

A decline, with a reason a person can read.

public static SupportAnswer Declined(string reason)

Parameters

reason string

Returns

SupportAnswer

FromBody(string)

An answer.

public static SupportAnswer FromBody(string body)

Parameters

body string

Returns

SupportAnswer