Skip to content
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

.Net Agents - Streaming Bug Fix and Support Additional Assistant Option #8852

Merged
merged 12 commits into from
Sep 17, 2024

Conversation

crickman
Copy link
Contributor

@crickman crickman commented Sep 17, 2024

Motivation and Context

Respond to two customer identified issues:

  1. Add support for AdditionalInstructions for creating an assistant as well as invocation override.
    Fixes .Net: New Feature: Support additional properties available in RunCreationOptions via OpenAIAssistantInvocationOptions #8715

  2. Fix issue with duplicated tool-call result when using ChatCompletionAgent streaming
    Fixes Bug: Agent streaming duplicates message when IAutoFunctionInvocationFilter uses Terminate #8825

Description

  1. AdditionalInstructions option wasn't included in the V2 migration as oversight. This is a pure addition.
  2. Unit-tests added for new AdditionalInstructions option.
  3. Duplication of the terminated function result addressed within ChatCompletionAgent
  4. Streaming cases added to existing sample demonstrating use of IAutoFunctionInvocationFilter : Concepts/Agents/ChatCompletion_FunctionTermination

Contribution Checklist

@crickman crickman added this pull request to the merge queue Sep 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 17, 2024
@crickman crickman added this pull request to the merge queue Sep 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 17, 2024
@crickman crickman added this pull request to the merge queue Sep 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 17, 2024
@crickman crickman added this pull request to the merge queue Sep 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 17, 2024
@crickman crickman added this pull request to the merge queue Sep 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 17, 2024
@crickman crickman added this pull request to the merge queue Sep 17, 2024
@crickman crickman removed this pull request from the merge queue due to a manual request Sep 17, 2024
@markwallace-microsoft markwallace-microsoft added the kernel Issues or pull requests impacting the core kernel label Sep 17, 2024
@crickman crickman added this pull request to the merge queue Sep 17, 2024
@crickman crickman removed this pull request from the merge queue due to a manual request Sep 17, 2024
@crickman crickman added this pull request to the merge queue Sep 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 17, 2024
@dmytrostruk dmytrostruk added this pull request to the merge queue Sep 17, 2024
Merged via the queue into main with commit 00f3a6b Sep 17, 2024
15 checks passed
@dmytrostruk dmytrostruk deleted the fix_agent_streaming_and_assistant_options branch September 17, 2024 20:23
@crickman crickman removed the PR: ready for review All feedback addressed, ready for reviews label Sep 19, 2024
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 enhancement experimental Associated with an experimental feature kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code
Projects
Status: Sprint: Done
4 participants