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: New Feature: Support additional properties available in RunCreationOptions via OpenAIAssistantInvocationOptions #8715

Closed
joeyj opened this issue Sep 13, 2024 · 1 comment · Fixed by #8852
Assignees
Labels
agents bug Something isn't working experimental Associated with an experimental feature .NET Issue or Pull requests regarding .NET code

Comments

@joeyj
Copy link

joeyj commented Sep 13, 2024

We would like the ability to specify AdditionalInstructions when invoking an OpenAIAssistantAgent; however, this is not defined on OpenAIAssistantInvocationOptions but this property is defined on RunCreationOptions.

@crickman crickman added bug Something isn't working .NET Issue or Pull requests regarding .NET code experimental Associated with an experimental feature labels Sep 16, 2024
@github-actions github-actions bot changed the title New Feature: Support additional properties available in RunCreationOptions via OpenAIAssistantInvocationOptions .Net: New Feature: Support additional properties available in RunCreationOptions via OpenAIAssistantInvocationOptions Sep 16, 2024
@crickman
Copy link
Contributor

@joeyj - Thank you for this call-out. This wasn't intentional, just an oversite and can certainly be exposed.

@crickman crickman linked a pull request Sep 17, 2024 that will close this issue
4 tasks
github-merge-queue bot pushed a commit that referenced this issue Sep 17, 2024
…on (#8852)

### Motivation and Context
<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

Respond to two customer identified issues:
1. Add support for `AdditionalInstructions` for creating an assistant as
well as invocation override.
Fixes #8715

2. Fix issue with duplicated tool-call result when using
`ChatCompletionAgent` streaming
Fixes #8825

### Description
<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

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.
4. Duplication of the terminated function result addressed within
`ChatCompletionAgent`
5. Streaming cases added to existing sample demonstrating use of
`IAutoFunctionInvocationFilter` :
`Concepts/Agents/ChatCompletion_FunctionTermination`

### 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 😄
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
Projects
Status: Sprint: Done
Development

Successfully merging a pull request may close this issue.

3 participants