Coder Social home page Coder Social logo

kbeaugrand / semantickernel.assistants Goto Github PK

View Code? Open in Web Editor NEW
87.0 3.0 7.0 607 KB

Microsoft Semantic Kernel Assistants This enables the usage of assistants for the Semantic Kernel. It provides different scenarios for the usage of assistants such as: Assistant with Semantic Kernel plugins Multi-Assistant conversation

License: MIT License

C# 99.51% Handlebars 0.49%
assistants llm semantic-kernel

semantickernel.assistants's People

Contributors

dependabot[bot] avatar joslat avatar kbeaugrand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

semantickernel.assistants's Issues

Bring Autogen Agent implementations!!

Why not too take some code from LittleLittleCloud and implement some of the Autogen abstractions? ;)
PR for the Autogen .NET implementation: https://github.com/microsoft/autogen/pull/924/files

I don't like the handling of multi-model but if we do this first and delegate anything on the models to the kernel there we go... we can start bringing in the ConversableAgent, and all the others, including the super cool implementation of the advanced analysis (self coding skill) implemented with dotnetinteractive and source generators :)

The plan:

  1. We got those abstractions working on this codebase.
    2, We bring them to the PR in SK.
  2. We bring them into Autogen (once PR of .NET is approved).

Update sample to match new assistant declaration flavor

Desription

Assistant declaration parameters has changed. However samples are not up to date.

Older input_parameter paramter is now changed to:

input_parameters: 
     - name: <name>
       is_required: True|False
       default_value: ""
       description: |

Need to reflect this change to sample provided and readme.

make it more model-agnostic - through the kernel

The kernel is supporting more models, but we keep creating and doing everything by hand on the AgentBuilder (line 117 on AgentBuilder.cs for the PR https://github.com/microsoft/semantic-kernel/pull/3912/files) WithAzureOpenAIChatCompletion() for example.
Similar to how the current version of SK is doing it: https://github.com/microsoft/semantic-kernel/blob/main/dotnet/src/Experimental/Agents/AgentBuilder.cs line 73, WithOpenAIChatCompletion.

But... the kernel supports already multi model so, let's use it shall we?

Suggestion: Add only a "WithKernel(Kernel kernel, string serviceId)" we could either copy the configuration of the kernel or clone the kernel (even more simple). I understand we want to decouple the kernel, but maybe we can reuse it if it allows parallel calls...
If we look at the example AIServiceSelector, https://github.com/microsoft/semantic-kernel/blob/main/dotnet/samples/KernelSyntaxExamples/Example62_CustomAIServiceSelector.cs

        var builder = Kernel.CreateBuilder()
            .AddAzureOpenAIChatCompletion(
                deploymentName: TestConfiguration.AzureOpenAI.ChatDeploymentName,
                endpoint: TestConfiguration.AzureOpenAI.Endpoint,
                apiKey: TestConfiguration.AzureOpenAI.ApiKey,
                serviceId: "AzureOpenAIChat",
                modelId: TestConfiguration.AzureOpenAI.ChatModelId)
            .AddOpenAIChatCompletion(
                modelId: TestConfiguration.OpenAI.ChatModelId,
                apiKey: TestConfiguration.OpenAI.ApiKey,
                serviceId: "OpenAIChat");

We could add a third or fourth local models, Ollama, LM Studio... through a service id.
And then reuse the existing kernel for this (or create a new one if needed, unsure on the internals and if SK kernel allows calls in parallel)

Bug: AutoGen failed with Missing Method exception in FunctionCallingStepwisePlanner

Description

When using AutoGen from NuGet Package, I'm facing this issue :

Method not found: 'System.Threading.Tasks.Task`1<Microsoft.SemanticKernel.Planning.FunctionCallingStepwisePlannerResult> Microsoft.SemanticKernel.Planning.FunctionCallingStepwisePlanner.ExecuteAsync(Microsoft.SemanticKernel.Kernel, System.String, System.Threading.CancellationToken)'.

I can step over functions, but this fails when reaching the Semantic Kernel Core capabilities.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.