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/Prompt.InstructionsAttribute.cs

24lines · modecode

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