Skip to content

Commit 426b20e

Browse files
.Net: Remove math and wait plugins (#11815)
### Motivation, Context and Description Both plugins were introduced a long time ago at the beginning of the project and are not relevant anymore. Contributes to: #10070
1 parent fc54681 commit 426b20e

File tree

5 files changed

+18
-354
lines changed

5 files changed

+18
-354
lines changed

dotnet/samples/Concepts/Planners/FunctionCallStepwisePlanning.cs

+18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Microsoft. All rights reserved.
22

3+
using System.ComponentModel;
34
using Microsoft.SemanticKernel;
45
using Microsoft.SemanticKernel.Planning;
56
using Microsoft.SemanticKernel.Plugins.Core;
@@ -55,4 +56,21 @@ private static Kernel InitializeKernel()
5556

5657
return kernel;
5758
}
59+
60+
private sealed class MathPlugin
61+
{
62+
[KernelFunction, Description("Adds an amount to a value")]
63+
[return: Description("The sum")]
64+
public int Add(
65+
[Description("The value to add")] int value,
66+
[Description("Amount to add")] int amount) =>
67+
value + amount;
68+
69+
[KernelFunction, Description("Subtracts an amount from a value")]
70+
[return: Description("The difference")]
71+
public int Subtract(
72+
[Description("The value to subtract")] int value,
73+
[Description("Amount to subtract")] int amount) =>
74+
value - amount;
75+
}
5876
}

dotnet/src/Plugins/Plugins.Core/MathPlugin.cs

-37
This file was deleted.

dotnet/src/Plugins/Plugins.Core/WaitPlugin.cs

-39
This file was deleted.

dotnet/src/Plugins/Plugins.UnitTests/Core/MathPluginTests.cs

-192
This file was deleted.

dotnet/src/Plugins/Plugins.UnitTests/Core/WaitPluginTests.cs

-86
This file was deleted.

0 commit comments

Comments
 (0)