Files
microsoft--semantic-kernel/dotnet/samples/Demos/OllamaFunctionCalling/Plugins/MyTimePlugin.cs
T
wehub-resource-sync b957a53def
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:21:23 +08:00

17 lines
382 B
C#

// Copyright (c) Microsoft. All rights reserved.
using System;
using System.ComponentModel;
using Microsoft.SemanticKernel;
namespace OllamaFunctionCalling;
/// <summary>
/// Simple plugin that just returns the time.
/// </summary>
public class MyTimePlugin
{
[KernelFunction, Description("Get the current time")]
public DateTimeOffset Time() => DateTimeOffset.Now;
}