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/Function.DescriptionAttribute.cs

23lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4namespace Microsoft.Teams.AI.Annotations;
5
6[Obsolete("Microsoft.Teams.AI is deprecated and will be removed by end of summer 2026.")]
7public static partial class Function
8{
9 [AttributeUsage(AttributeTargets.Method, Inherited = true)]
10 [Obsolete("Microsoft.Teams.AI is deprecated and will be removed by end of summer 2026.")]
11 public class DescriptionAttribute : Attribute
12 {
13 /// <summary>
14 /// the functions description
15 /// </summary>
16 public string Description { get; private set; }
17
18 public DescriptionAttribute(params string[] Description)
19 {
20 this.Description = string.Join("\n", Description);
21 }
22 }
23}