-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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: Bug: .Net Plugin return[Description] being totaly ignored? #10010
Comments
Hi @christianarg, thanks for reporting the issue. Please consider one of the techniques described here - https://github.com/microsoft/semantic-kernel/blob/main/dotnet/samples/Concepts/FunctionCalling/FunctionCalling_ReturnMetadata.cs to provide function return metadata to AI model. We'll improve our documentation to make it clearer. |
@christianarg, may I ask you to share scenario(s) where the LLM was not able to reason about the function result, and you tried to help it by including the return type description? |
@SergeyMenshykh I don't need it, with the normal [Description ("some description")] is more than enough IMO. But literally your official docs https://learn.microsoft.com/en-us/semantic-kernel/concepts/plugins/?pivots=programming-language-csharp#1-define-your-plugin are telling developers to use [return: Description ("information about function return")]. |
@christianarg, got it; we are improving the documentation at the moment. |
The documentation has been updated. Closing the issue for now. |
When I define un a plugin [return:Description("Some description")] as documented in the official documentation https://learn.microsoft.com/en-us/semantic-kernel/concepts/plugins/?pivots=programming-language-csharp#1-define-your-plugin the return description seems to be completely ignored.
After testing many times I've observed that the indications in [return:Description("...")] where completely ignored by the model. Since there is a large discussion about how to capture exact request that is made to azure open ai when using chat completion service here #1239 I made some code to inspect the exact request
Then having 2 simple plugins
When invoking with chatCompletions (many lines shortened for brevity, I assume you get the idea)
The captured post does NOT show the text in the [return:Description("")] in the tools parameter:
The text was updated successfully, but these errors were encountered: