microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
8e11e5e231765b6fbeae91b4033a354e2340d0af

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.AI/Annotations/FunctionAttribute.cs

24lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4namespace Microsoft.Teams.AI.Annotations;
5
6[AttributeUsage(AttributeTargets.Method, Inherited = true)]
7public class FunctionAttribute : Attribute
8{
9 /// <summary>
10 /// the functions name
11 /// </summary>
12 public string? Name { get; private set; }
13
14 /// <summary>
15 /// the functions description
16 /// </summary>
17 public string? Description { get; private set; }
18
19 public FunctionAttribute(string? Name = null, string? Description = null)
20 {
21 this.Name = Name;
22 this.Description = Description;
23 }
24}