-
Notifications
You must be signed in to change notification settings - Fork 4k
.Net: Add functionality to create and import plugins with YAML functions #10840
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: Add functionality to create and import plugins with YAML functions #10840
Conversation
@microsoft-github-policy-service agree |
52206bd
to
51d811d
Compare
Currently getting these errors after build, will appreciate help with that since I didn't managed to find solution to fix it:
|
Hi @grafanaKibana
|
…r CS0433: The type 'HttpResponseStream' exists in both 'Microsoft.SemanticKernel.Plugins.OpenApi, Version=1.40.1.0, Culture=neutral, PublicKeyToken=null' and 'Microsoft.SemanticKernel.Yaml, Version=1.40.1.0, Culture=neutral, PublicKeyToken=null' [/home/runner/work/semantic-kernel/semantic-kernel/dotnet/src/Functions/Functions.UnitTests/Functions.UnitTests.csproj]
Hi @grafanaKibana, the |
8c3c2f3
to
852eb8b
Compare
852eb8b
to
4534e33
Compare
Motivation and Context
Initial Proposal
Motivation
When working with JSON and TXT prompt files, developers can easily add them to the kernel’s plugin collection using
IKernelBuilderPlugins.AddFromPromptDirectory
. In contrast, YAML prompt files require extra steps: manually reading each file, creating functions viaCreateFunctionFromPromptYaml
, and then adding them withAddFromFunctions
. This extra overhead makes using YAML less streamlined.Description
Introduce a new extension method,
AddFromYamlPromptDirectory
, that:CreateFunctionFromPromptYaml
.For example, with the new method, developers could write:
While currently we have to do something like this (Pseudo Code):
Contribution Checklist