Citation in Turncontext does not work in Teams Channel
Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Versions
4.22.2
Describe the bug
Teams channel does not show citation list correctly when I call TurnContext.sendActivity with some citations as the following:
\"citation\":[{\"@type\":\"Claim\",\"position\":\"2\",\"appearance\":{\"@type\":\"DigitalDocument\",\"name\":\"Contoso Electronics Company Overview\",\"abstract\":\"Contoso Electronics Company Overview\\n\\nDisclaimer: This document contains information generated using a language model (Azure OpenAI). The information contained in this document is only for demonstration purposes and does not reflect the opinions or beliefs of Microsoft. Microsoft makes no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the information contained in this document. All rights...\"}},{\"@type\":\"Claim\",\"position\":\"1\",\"appearance\":{\"@type\":\"DigitalDocument\",\"name\":\"Contoso Electronics Plan and Benefit Packages\",\"abstract\":\"Contoso Electronics Plan and Benefit Packages\\n\\nDisclaimer: This document contains information generated using a language model (Azure OpenAI). The information contained in this document is only for demonstration purposes and does not reflect the opinions or beliefs of Microsoft. Microsoft makes no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the information contained in this document....\"}},{\"@type\":\"Claim\",\"position\":\"3\",\"appearance\":{\"@type\":\"DigitalDocument\",\"name\":\"Contoso Electronics PerksPlus Program\",\"abstract\":\"Contoso Electronics PerksPlus Program\\n\\nDisclaimer: This document contains information generated using a language model (Azure OpenAI). The information contained in this document is only for demonstration purposes and does not reflect the opinions or beliefs of Microsoft. Microsoft makes no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the information contained in this document. All rights...\"}}]}]
It is highly a Teams server side bug because I found that all activities were correct set before sent to request as part of request body. https://github.com/microsoft/botbuilder-js/blob/67a570875eec4ea00eaeb4b551249b6787a427db/libraries/botbuilder-core/src/cloudAdapterBase.ts#L87
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
Show citations list.
Screenshots
Additional context
Add any other context about the problem here.
For context: Citations are related to AI content such that appropriate markup can be provided in the Activity to highlight the source of data. This has not been added to BF SDK yet and is not expected to work yet. Everything so far is POC. Leaving this issue open as a marker for parties that may have seen demos and are curious. In the near future we will open offfical issues with details and PR's.