Repository navigation
.Net: Enable InvokeAsync() and InvokeAsync<T> To Return the Connector Type - #4085
Merged
Roger Barreto (rogerbarreto) merged 8 commits intoDec 8, 2023
Conversation
SergeyMenshykh
approved these changes
Dec 8, 2023
Mark Wallace (markwallace-microsoft)
approved these changes
Dec 8, 2023
Roger Barreto (rogerbarreto)
deleted the
issues/4079-invokeasync-multiple-T-enablement
branch
December 8, 2023 14:19
Bryan (Bryan-Roe)
pushed a commit
to Bryan-Roe-ai/semantic-kernel
that referenced
this pull request
Oct 6, 2024
… Type (microsoft#4085) ### Motivation and Context Similar to InvokeStreamingAsync<T> where you can specify the T that the connector is returning, this will allow the same for the non-streaming API This change also allows `IChatCompletionService`s to be recognized by the `Prompt Functions` and return the underlying ChatMessages directly to the InvokeAsync calls. Resolves microsoft#4079
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Similar to InvokeStreamingAsync where you can specify the T that the connector is returning, this will allow the same for the non-streaming API
This change also allows
IChatCompletionServices to be recognized by thePrompt Functionsand return the underlying ChatMessages directly to the InvokeAsync calls.Resolves #4079