diff options
Diffstat (limited to 'Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/ChatMessageLogger.cs')
| -rw-r--r-- | Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/ChatMessageLogger.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/ChatMessageLogger.cs b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/ChatMessageLogger.cs index 4eed2182d..2ae47467a 100644 --- a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/ChatMessageLogger.cs +++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/ChatMessageLogger.cs @@ -66,13 +66,14 @@ namespace Tango.Portal.Chat.Web.Services Role = "user", Classification = "question", Message = question, - Provider = string.Empty + Provider = string.Empty, + Assumptions = string.Empty }; await LogMessageAsync(message, ct); } - public async Task LogAnswerAsync(string sessionId, string userEmail, string userName, ChatResponse response, string assistantType, string provider, CancellationToken ct = default) + public async Task LogAnswerAsync(string sessionId, string userEmail, string userName, ChatResponse response, string assistantType, string provider, List<string>? assumptions, CancellationToken ct = default) { var answerMessage = BuildAnswerMessage(response); @@ -85,7 +86,8 @@ namespace Tango.Portal.Chat.Web.Services Role = "assistant", Classification = assistantType, Message = answerMessage, - Provider = provider + Provider = provider, + Assumptions = assumptions != null && assumptions.Count > 0 ? string.Join("; ", assumptions) : string.Empty }; await LogMessageAsync(message, ct); |
