Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 67bfcbf

Browse files
committedFeb 4, 2025·
fixes
1 parent 409a728 commit 67bfcbf

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
 

‎dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/MessageFetchTaskHandler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace Microsoft.Teams.AI.Application
1818
/// <summary>
1919
/// Response for the "message/taskFetch" route handler. Only set one or the other, but not both.
2020
/// </summary>
21-
public class MessageFetchTaskResponse()
21+
public class MessageFetchTaskResponse
2222
{
2323
/// <summary>
2424
/// The task module metadata.

‎dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/StreamingResponse.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,14 @@ private async Task SendActivity(Activity activity)
362362
// Add in Generated by AI
363363
if (this.EnableGeneratedByAILabel == true)
364364
{
365-
List<ClientCitation>? currCitations = CitationUtils.GetUsedCitations(this.Message, this.Citations);
366365
AIEntity entity = new AIEntity();
367366
if (this.Citations != null && this.Citations.Count > 0)
368367
{
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+
}
370373
}
371374

372375
entity.UsageInfo = this.SensitivityLabel;

0 commit comments

Comments
 (0)