28 lines
726 B
C#
28 lines
726 B
C#
using System;
|
|
|
|
namespace xAiModels.Attributes
|
|
{
|
|
/// <summary>
|
|
/// Decorate and Describe Specified MCP Tool to LLM ...
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
|
public class XAiMcpToolAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// Tools Unique Name (Default: Method Name) ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
public string Name { get; }
|
|
|
|
/// <summary>
|
|
/// Tools Description for LLM ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
public string Description { get; set; }
|
|
|
|
public XAiMcpToolAttribute(string name = null)
|
|
{
|
|
Name = name;
|
|
}
|
|
}
|
|
} |