microsoft/teams.net

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
fix/msal-cache

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

25lines · 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)]
7[Obsolete("Microsoft.Teams.AI is deprecated and will be removed by end of summer 2026.")]
8public class FunctionAttribute : Attribute
9{
10 /// <summary>
11 /// the functions name
12 /// </summary>
13 public string? Name { get; private set; }
14
15 /// <summary>
16 /// the functions description
17 /// </summary>
18 public string? Description { get; private set; }
19
20 public FunctionAttribute(string? Name = null, string? Description = null)
21 {
22 this.Name = Name;
23 this.Description = Description;
24 }
25}