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: Obsolete the useless SetDefaultFunctionCollection #3183

Merged
merged 4 commits into from
Oct 16, 2023

Conversation

stephentoub
Copy link
Member

Description

ISKFunction exposes a SetDefaultFunctionCollection. On all implementations it's either a nop or just delegates to the same interface method on a wrapped object. The one exception to that is SemanticFunction, which stores the argument into a field that then is never used.

Contribution Checklist

`ISKFunction` exposes a `SetDefaultFunctionCollection`. On all implementations it's either a nop or just delegates to the same interface method on a wrapped object. The one exception to that is `SemanticFunction`, which stores the argument into a field _that then is never used_.
@stephentoub stephentoub requested a review from a team as a code owner October 15, 2023 02:16
@shawncal shawncal added .NET Issue or Pull requests regarding .NET code kernel.core labels Oct 15, 2023
@github-actions github-actions bot changed the title Obsolete the useless SetDefaultFunctionCollection .Net: Obsolete the useless SetDefaultFunctionCollection Oct 15, 2023
@stephentoub stephentoub enabled auto-merge October 16, 2023 13:05
@dmytrostruk
Copy link
Member

FYI: need re-approval after merge conflict resolution in this commit: 39dbd01

@stephentoub stephentoub added this pull request to the merge queue Oct 16, 2023
Merged via the queue into microsoft:main with commit 7ab5c39 Oct 16, 2023
18 checks passed
@stephentoub stephentoub deleted the deletesetdefault branch October 16, 2023 15:41
SOE-YoungS pushed a commit to SOE-YoungS/semantic-kernel that referenced this pull request Nov 1, 2023
### Description

`ISKFunction` exposes a `SetDefaultFunctionCollection`. On all
implementations it's either a nop or just delegates to the same
interface method on a wrapped object. The one exception to that is
`SemanticFunction`, which stores the argument into a field _that then is
never used_.

### 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
- [ ] I didn't break anyone 😄

Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants