mirror of
https://github.com/microsoft/autogen.git
synced 2025-07-08 09:31:51 +00:00

Add missing C# and F# kernels. These are needed to create a default kernel else it will return an empty kernel.
28 lines
863 B
C#
28 lines
863 B
C#
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// DotnetInteractiveKernelBuilder.cs
|
|
|
|
namespace AutoGen.DotnetInteractive;
|
|
|
|
public static class DotnetInteractiveKernelBuilder
|
|
{
|
|
|
|
#if NET8_0_OR_GREATER
|
|
public static InProccessDotnetInteractiveKernelBuilder CreateEmptyInProcessKernelBuilder()
|
|
{
|
|
return new InProccessDotnetInteractiveKernelBuilder();
|
|
}
|
|
|
|
public static InProccessDotnetInteractiveKernelBuilder CreateDefaultInProcessKernelBuilder()
|
|
{
|
|
return new InProccessDotnetInteractiveKernelBuilder()
|
|
.AddCSharpKernel()
|
|
.AddFSharpKernel();
|
|
}
|
|
#endif
|
|
|
|
public static DotnetInteractiveStdioKernelConnector CreateKernelBuilder(string workingDirectory, string kernelName = "root-proxy")
|
|
{
|
|
return new DotnetInteractiveStdioKernelConnector(workingDirectory, kernelName);
|
|
}
|
|
}
|