chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
|
||||
using System.ComponentModel;
|
||||
using Microsoft.SemanticKernel;
|
||||
|
||||
namespace OllamaFunctionCalling;
|
||||
|
||||
/// <summary>
|
||||
/// Class that represents a controllable light bulb.
|
||||
/// </summary>
|
||||
[Description("Represents a light bulb")]
|
||||
public class MyLightPlugin(bool turnedOn = false)
|
||||
{
|
||||
private bool _turnedOn = turnedOn;
|
||||
|
||||
[KernelFunction, Description("Returns whether this light is on")]
|
||||
public bool IsTurnedOn() => _turnedOn;
|
||||
|
||||
[KernelFunction, Description("Turn on this light")]
|
||||
public void TurnOn() => _turnedOn = true;
|
||||
|
||||
[KernelFunction, Description("Turn off this light")]
|
||||
public void TurnOff() => _turnedOn = false;
|
||||
}
|
||||
Reference in New Issue
Block a user