microsoft/teams.net

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
8e11e5e231765b6fbeae91b4033a354e2340d0af

Branches

Tags

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

Clone

HTTPS

Download ZIP

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
4namespace Microsoft.Teams.AI.Annotations;
5
6public 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}