microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.AI/Annotations/Prompt.DescriptionAttribute.cs
21lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | namespace Microsoft.Teams.AI.Annotations; |
| 5 | |
| 6 | public static partial class Prompt |
| 7 | { |
| 8 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = true)] |
| 9 | public class DescriptionAttribute : Attribute |
| 10 | { |
| 11 | /// <summary> |
| 12 | /// the prompts description |
| 13 | /// </summary> |
| 14 | public string Description { get; private set; } |
| 15 | |
| 16 | public DescriptionAttribute(params string[] Description) |
| 17 | { |
| 18 | this.Description = string.Join("\n", Description); |
| 19 | } |
| 20 | } |
| 21 | } |