Skip to content

Python: Bug: Python - AzureAIAgent - BingGrounding - Streaming - Annotation missing quote/text. #12324

@rutzsco

Description

@rutzsco

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:

  1. Create an AzureAIAgent with bing grounding
  2. Implement in SK with streaming response
  3. Invoke Agent with "What is the weather forecast for today in New York City?"
  4. 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:

Image

Metadata

Metadata

Assignees

Labels

agentsbugSomething isn't workingpythonPull requests for the Python Semantic Kernel

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions