File tree 2 files changed +6
-3
lines changed
dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ namespace Microsoft.Teams.AI.Application
18
18
/// <summary>
19
19
/// Response for the "message/taskFetch" route handler. Only set one or the other, but not both.
20
20
/// </summary>
21
- public class MessageFetchTaskResponse ( )
21
+ public class MessageFetchTaskResponse
22
22
{
23
23
/// <summary>
24
24
/// The task module metadata.
Original file line number Diff line number Diff line change @@ -362,11 +362,14 @@ private async Task SendActivity(Activity activity)
362
362
// Add in Generated by AI
363
363
if ( this . EnableGeneratedByAILabel == true )
364
364
{
365
- List < ClientCitation > ? currCitations = CitationUtils . GetUsedCitations ( this . Message , this . Citations ) ;
366
365
AIEntity entity = new AIEntity ( ) ;
367
366
if ( this . Citations != null && this . Citations . Count > 0 )
368
367
{
369
- entity . Citation = currCitations ;
368
+ List < ClientCitation > ? currCitations = CitationUtils . GetUsedCitations ( this . Message , this . Citations ) ;
369
+ if ( currCitations != null && currCitations . Count > 0 )
370
+ {
371
+ entity . Citation = currCitations ;
372
+ }
370
373
}
371
374
372
375
entity . UsageInfo = this . SensitivityLabel ;
You can’t perform that action at this time.
0 commit comments