// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using Microsoft.Teams.AI.Templates; namespace Microsoft.Teams.AI.Annotations; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = true)] [Obsolete("Microsoft.Teams.AI is deprecated and will be removed by end of summer 2026.")] public class PromptAttribute : Attribute { /// /// the prompts name /// public string? Name { get; private set; } /// /// the prompts description /// public string? Description { get; private set; } /// /// the prompts instructions /// public ITemplate? Instructions { get; private set; } public PromptAttribute(string? Name = null, string? Description = null) { this.Name = Name; this.Description = Description; } public PromptAttribute(string? Name = null, string? Description = null, params string[] Instructions) { this.Name = Name; this.Description = Description; this.Instructions = new StringTemplate(string.Join("\n", Instructions)); } }