25 lines
533 B
C#
25 lines
533 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using Microsoft.SemanticKernel.Plugins.Core;
|
|
|
|
namespace Functions;
|
|
|
|
public class MethodFunctions(ITestOutputHelper output) : BaseTest(output)
|
|
{
|
|
[Fact]
|
|
public Task RunAsync()
|
|
{
|
|
Console.WriteLine("======== Functions ========");
|
|
|
|
// Load native plugin
|
|
var text = new TextPlugin();
|
|
|
|
// Use function without kernel
|
|
var result = text.Uppercase("ciao!");
|
|
|
|
Console.WriteLine(result);
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|