Skip to content

.Net Agents - Protect against null-reference for Assistant file-search result when streaming - #9742

Merged
Chris (crickman) merged 6 commits into
mainfrom
fix-assistant-streaming-filesearch-result
Nov 19, 2024
Merged

Chris (crickman) merged 6 commits into
mainfrom
fix-assistant-streaming-filesearch-result

Conversation

@crickman

@crickman Chris (crickman) commented Nov 18, 2024 •

Copy link
Copy Markdown
Contributor

Motivation and Context

Fixes: #9723

Must distinguish between file-search result and function-call result for assistant streaming without triggering NullReferenceException

Description

A file-search result provide any streaming result; rather, it results in an annotation on the assistant message. Still it must be distinguished from a function-call result.

Since RunStepDetailsUpdate.FunctionName property throws a NullReferenceException when being evaluated, using RunStepDetailsUpdate.FunctionResult property.

Merged fix to Open AI SDK: openai/openai-dotnet#293

Contribution Checklist

@crickman Chris (crickman) added bug Something isn't working PR: ready for review All feedback addressed, ready for reviews .NET Issue or Pull requests regarding .NET code experimental Associated with an experimental feature agents labels Nov 18, 2024
@crickman Chris (crickman) self-assigned this Nov 18, 2024
@crickman
Chris (crickman) requested a review from a team as a code owner November 18, 2024 21:21
@markwallace-microsoft Mark Wallace (markwallace-microsoft) added the kernel Issues or pull requests impacting the core kernel label Nov 18, 2024
@crickman Chris (crickman) removed the kernel Issues or pull requests impacting the core kernel label Nov 18, 2024
@crickman
Chris (crickman) added this pull request to the merge queue Nov 19, 2024
Merged via the queue into main with commit f8d7a7e Nov 19, 2024
@crickman
Chris (crickman) deleted the fix-assistant-streaming-filesearch-result branch November 19, 2024 03:29

This branch was previously deployed

1 inactive deployment
integration — 60f16ee6 Deployed Nov 18, 2024 by crickman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents bug Something isn't working experimental Associated with an experimental feature .NET Issue or Pull requests regarding .NET code PR: ready for review All feedback addressed, ready for reviews

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

.Net: Bug - package Microsoft.SemanticKernel.Agents.OpenAI file_search tool call no longer works past nuget v1.24.1-alpha

4 participants