[Feature request]: Expose CituationUtils class #2309
Labels
dotnet
Change/fix applies to dotnet. If all three, use the 'JS & dotnet & Python' label
enhancement
New feature or request
Please be sure to check the Discussions Q&A section before filing a new question.
In the Teams Toolkit, we have a CEA template which overrides the SayCommand to customize the citation content.
The teams ai library exposes a useful citation utility as the following shows.
https://github.com/OfficeDev/teams-toolkit/blob/2113c3332df66d88e8955115ca46c945ccbd637e/templates/ts/custom-copilot-rag-customize/src/app/customSayCommand.ts#L68
We want to migrate this code to dotnet project. It is found that the implementation of CitationUtils in dotnet is an internal class and the project code cannot access to it.
https://github.com/microsoft/teams-ai/blob/main/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Utilities/CitationUtils.cs
Question
Can we expose the CitationUtils class(maybe more utilities class) to library users?
One more question, is there any suggestion for the best practice to customize the citation?
I find that we want to customize the citation content rather override the SayCommand.
If there is hook which we can update the citation before the real SayCommand action (somehow BeforeSayCommand), we do not need to override the SayCommand action.
Code snippets
The text was updated successfully, but these errors were encountered: