handle null string

This commit is contained in:
Jicheng Lu 2025-07-02 13:12:04 -05:00
parent a9b804d08e
commit eb8eb43ea3

View file

@ -49,7 +49,7 @@ public class PlotChartFn : IFunctionCallback
]);
var obj = response.JsonContent<LlmContextOut>();
message.Content = obj?.GreetingMessage ?? "Here is the chart you ask for:";
message.Content = obj?.GreetingMessage.IfNullOrEmptyAs("Here is the chart you ask for:");
message.RichContent = new RichContent<IRichMessage>
{
Recipient = new Recipient { Id = convService.ConversationId },