You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
semantic kernel allows user to use plugins to extend the ability of llm. In the meantime, semantic kernel also provides a lot of built-in plugins, like OpenAPI or BingSearch. It would greatly extend the ability of agents if those plugins can also be used in agent, in the similar way of tool call.
Describe the solution you'd like
We can provide a middleware in AutoGen.SemanticKernel to consume plugins
vargetWeatherMethod= kernel.CreateFunctionFromMethod((stringlocation)=>$"The weather in {location} is sunny.", functionName:"GetWeather", description:"Get the weather for a location.");varcreatePersonObjectMethod= kernel.CreateFunctionFromMethod((stringname,stringemail,intage)=>new Person(name, email, age), functionName:"CreatePersonObject", description:"Creates a person object.");varplugin= kernel.ImportPluginFromFunctions("plugin",[getWeatherMethod, createPersonObjectMethod]);varkernelFunctionMiddleware=new KernelPluginMiddleware(kernel, plugin);varagent=new OpenAIChatAgent(openaiClient,"assistant", modelName:"gpt-35-turbo-16k").RegisterMessageConnector().RegisterMiddleware(kernelFunctionMiddleware);varreply=await agent.SendAsync("what's the weather in Seattle?");
reply.GetContent().Should().Be("The weather in Seattle is sunny.");
Additional context
No response
The content you are editing has changed. Please copy your edits and refresh the page.
LittleLittleCloud
changed the title
[.Net][Feature Request]: Consume SK functions in IAgent
[.Net][Feature Request]: Consume SK Plugins in Agent
May 5, 2024
Is your feature request related to a problem? Please describe.
semantic kernel allows user to use plugins to extend the ability of llm. In the meantime, semantic kernel also provides a lot of built-in plugins, like
OpenAPI
orBingSearch
. It would greatly extend the ability of agents if those plugins can also be used in agent, in the similar way of tool call.Describe the solution you'd like
We can provide a middleware in
AutoGen.SemanticKernel
to consume pluginsAdditional context
No response
Tasks
The text was updated successfully, but these errors were encountered: