Skip to content

.Net: Updated audio abstractions to return multiple values#5149

Merged
rogerbarreto merged 5 commits intomicrosoft:mainfrom
dmytrostruk:improve-audio-abstraction
Feb 26, 2024
Merged

.Net: Updated audio abstractions to return multiple values#5149
rogerbarreto merged 5 commits intomicrosoft:mainfrom
dmytrostruk:improve-audio-abstraction

Conversation

@dmytrostruk
Copy link
Member

Motivation and Context

This PR contains changes for audio abstractions to align with abstraction pattern in SK to return multiple values instead of just one to be more flexible in cases when AI connector returns multiple results (like in chat completion service with choices).

For easier usage when only one result is provided by AI connector, it's possible to use extension method that is responsible for returning single result.

Contribution Checklist

@dmytrostruk dmytrostruk self-assigned this Feb 26, 2024
@dmytrostruk dmytrostruk requested a review from a team as a code owner February 26, 2024 12:17
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel kernel.core labels Feb 26, 2024
@dmytrostruk dmytrostruk added the PR: ready for review All feedback addressed, ready for reviews label Feb 26, 2024
@rogerbarreto rogerbarreto added this pull request to the merge queue Feb 26, 2024
Merged via the queue into microsoft:main with commit e4d2975 Feb 26, 2024
LudoCorporateShark pushed a commit to LudoCorporateShark/semantic-kernel that referenced this pull request Aug 25, 2024
…#5149)

### 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.
-->

This PR contains changes for audio abstractions to align with
abstraction pattern in SK to return multiple values instead of just one
to be more flexible in cases when AI connector returns multiple results
(like in chat completion service with choices).

For easier usage when only one result is provided by AI connector, it's
possible to use extension method that is responsible for returning
single result.

### 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 😄
Bryan-Roe pushed a commit to Bryan-Roe-ai/semantic-kernel that referenced this pull request Oct 6, 2024
…#5149)

### 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.
-->

This PR contains changes for audio abstractions to align with
abstraction pattern in SK to return multiple values instead of just one
to be more flexible in cases when AI connector returns multiple results
(like in chat completion service with choices).

For easier usage when only one result is provided by AI connector, it's
possible to use extension method that is responsible for returning
single result.

### 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

kernel.core kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code PR: ready for review All feedback addressed, ready for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants