microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.AI/Annotations/Function.DescriptionAttribute.cs
18lines · modecode
| 1 | namespace Microsoft.Teams.AI.Annotations; |
| 2 | |
| 3 | public static partial class Function |
| 4 | { |
| 5 | [AttributeUsage(AttributeTargets.Method, Inherited = true)] |
| 6 | public class DescriptionAttribute : Attribute |
| 7 | { |
| 8 | /// <summary> |
| 9 | /// the functions description |
| 10 | /// </summary> |
| 11 | public string Description { get; private set; } |
| 12 | |
| 13 | public DescriptionAttribute(params string[] Description) |
| 14 | { |
| 15 | this.Description = string.Join("\n", Description); |
| 16 | } |
| 17 | } |
| 18 | } |