-
Notifications
You must be signed in to change notification settings - Fork 295
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
[Bug] on_turn_error: unhandled error: 'text' #2210
Comments
@frankqianms This appears to be in relation to Teams AI SDK and should be directed to the repo. If I could, I would transfer the issue. But that isn't possible since that is a different group. |
The problematic code is in:
This is not related to |
Looks like a bug. We can take a look at that. |
This is how an incoming activity from M365 Copilot (custom engine agent) looks like, which is not compatible with the current code mentioned above. {
"text": "Hallo",
"textFormat": "plain",
"type": "message",
"timestamp": "2025-03-11T14:16:47.0093935Z",
"id": "1741702606984",
"channelId": "msteams",
"serviceUrl": "https://smba.trafficmanager.net/emea/REDACTED/",
"from": {
"id": "29:1J-K4xVh-sLpdwQ-R5GkOZ_TB0W3ec_37p710aH8qe8bITA0zxdgIGc9l-MdDdkdE_jasSfNOeWXyyL1nsrHtBQ",
"name": "",
"aadObjectId": "REDACTED"
},
"conversation": {
"isGroup": true,
"conversationType": "groupChat",
"tenantId": "REDACTED",
"id": "19:[email protected]"
},
"recipient": {
"id": "28:c5d5fb56-a1a4-4467-a7a3-1b37905498a0",
"name": "Azure AI Agent"
},
"entities": [
{
"mentioned": {
"id": "28:c5d5fb56-a1a4-4467-a7a3-1b37905498a0",
"name": "Custom Agent"
},
"type": "mention"
}
],
"channelData": {
"tenant": {
"id": "REDACTED"
},
"productContext": "COPILOT"
}
}
|
Ya. The mention doesn't have a Text property and that is what it's trying to work with. But that is a very helpful payload to work with. Probably don't even need to run it through a bot. |
Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Version
latest
Describe the bug
Using botbuilder-python and teams-ai SDK to build a Teams bot with AI response. When sideloading the bot in the M365 Copilot, on_turn_error will occur if trying to conversation with the bot.
Linked issue: microsoft/teams-ai#2326
To Reproduce
repro-noresponse-in-copilot.mp4
Expected behavior
Give a clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: