microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.AI/Annotations/FunctionAttribute.cs
24lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | namespace Microsoft.Teams.AI.Annotations; |
| 5 | |
| 6 | [AttributeUsage(AttributeTargets.Method, Inherited = true)] |
| 7 | public 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 | } |