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
Body
The answer to append to the case, or null when the assistant declined.
public string Body { get; init; }
Property Value
Calls
The service calls the assistant made to answer, in order; kept with the answer as AssistantCalls.
public SupportAssistantCall[] Calls { get; init; }
Property Value
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
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
Methods
Declined(string)
A decline, with a reason a person can read.
public static SupportAnswer Declined(string reason)
Parameters
reasonstring
Returns
FromBody(string)
An answer.
public static SupportAnswer FromBody(string body)
Parameters
bodystring