Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Citation in Turncontext does not work in Teams Channel #4673

Open
frankqianms opened this issue Jun 6, 2024 · 1 comment
Open

Citation in Turncontext does not work in Teams Channel #4673

frankqianms opened this issue Jun 6, 2024 · 1 comment
Labels
bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team.

Comments

@frankqianms
Copy link

frankqianms commented Jun 6, 2024

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...\"}}]}]

image

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.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Show citations list.

Screenshots

image

Additional context

Add any other context about the problem here.

@frankqianms frankqianms added bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team. labels Jun 6, 2024
@tracyboehrer
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team.
Projects
None yet
Development

No branches or pull requests

2 participants