-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Labels
agentsbugSomething isn't workingSomething isn't workingpythonPull requests for the Python Semantic KernelPull requests for the Python Semantic Kernel
Description
Describe the bug
When using bing_grounding tool in AzureAIAgent, the source citation(Eg.【3:4†source】) is not getting returned in the quote field of the StreamingAnnotationContent. This makes it more difficult to map the annotations to the reference in the agent response.
To Reproduce
Steps to reproduce the behavior:
- Create an AzureAIAgent with bing grounding
- Implement in SK with streaming response
- Invoke Agent with "What is the weather forecast for today in New York City?"
- See error
Expected behavior
StreamingAnnotationContent should have quote populated contain the text value for the source citation(eg 【3:4†source】.
Platform
- Language: [Python]
- Source: [1.32.0]
- AI model: [GPT-41]
- IDE: [VS Code]
- OS: [Windows]
Additional context
The issue appears to be in agent_content_generation.py generate_streaming_bing_grounding_content not setting the quote in condition starting at line 575. See potential fix:
Metadata
Metadata
Assignees
Labels
agentsbugSomething isn't workingSomething isn't workingpythonPull requests for the Python Semantic KernelPull requests for the Python Semantic Kernel
Type
Projects
Status
No status