Constructor ChatAnswer
- Namespace
- MailFathom.Application.Chat
- Assembly
- MailFathom.Application.dll
ChatAnswer(string, ChatGenerationStop, ChatTokenUsage?)
What a chat provider produced for one conversation.
public ChatAnswer(string Text, ChatGenerationStop Stop, ChatTokenUsage? Usage)
Parameters
TextstringThe generated text, which is never empty: a call that produced none is a failure rather than an answer.
StopChatGenerationStopWhy the model stopped generating.
UsageChatTokenUsageWhat the call consumed, or null where the provider reported nothing.
Remarks
The text is model output over untrusted input and is treated as untrusted itself: it is encoded for whatever
destination presents it, and it never reaches a log, a span, or an exporter. Usage is the part
that may, because a count says how much was sent without saying any of it.