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/FunctionAttribute.cs

24lines · modepreview

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Microsoft.Teams.AI.Annotations;

[AttributeUsage(AttributeTargets.Method, Inherited = true)]
public class FunctionAttribute : Attribute
{
    /// <summary>
    /// the functions name
    /// </summary>
    public string? Name { get; private set; }

    /// <summary>
    /// the functions description
    /// </summary>
    public string? Description { get; private set; }

    public FunctionAttribute(string? Name = null, string? Description = null)
    {
        this.Name = Name;
        this.Description = Description;
    }
}