Commit 7295458
Python: Include Bing Grounding Tool call results in
### Motivation and Context
According to the [Terms of Service for Grounding with Bing
Search](https://www.microsoft.com/en-us/bing/apis/grounding-legal#use-and-display-requirements),
the tool’s call results must be displayed in their original format.
Currently, in the `AzureAIAgent` `invoke/invoke_stream` responses,
search results are included in the `AnnotationContent`, but the search
query itself is not.
This PR updates the response of `invoke/invoke_stream` to include the
Bing Grounding Tool’s call results, so that the Bing search query can
also be displayed.
### Description
- Fixe an issue where errors occurred when handling Bing Grounding Tool
results in streaming mode
- Update `invoke/invoke_stream` responses to include the Bing Grounding
Tool call results
### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
---------
Co-authored-by: Evan Mattson <35585003+moonbox3@users.noreply.github.com>invoke_stream responses (#12265)1 parent 7a475c8 commit 7295458
File tree
1 file changed
+4
-5
lines changed- python/semantic_kernel/agents/azure_ai
1 file changed
+4
-5
lines changedLines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
402 | | - | |
| 401 | + | |
403 | 402 | | |
404 | 403 | | |
405 | | - | |
| 404 | + | |
406 | 405 | | |
407 | | - | |
408 | | - | |
| 406 | + | |
| 407 | + | |
409 | 408 | | |
410 | 409 | | |
411 | 410 | | |
| |||
0 commit comments