Files
xAiModels/Attributes/XAiMcpToolParamAttribute.cs

34 lines
951 B
C#

using System;
namespace xAiModels.Attributes
{
/// <summary>
/// Describe Specific Tools Parameter Metadata ...
/// </summary>
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
public sealed class XAiMcpToolParamAttribute : Attribute
{
/// <summary>
/// Parameter Name in JSON (Default Parameter Name) ...
/// </summary>
/// <value></value>
public string Name { get; }
/// <summary>
/// Describe Parameter to LLM ...
/// </summary>
/// <value></value>
public string Description { get; set; }
/// <summary>
/// Specified this Parameter is Required or not (Default is true) ...
/// </summary>
/// <value></value>
public bool Required { get; set; } = true;
public XAiMcpToolParamAttribute(string name = null)
{
Name = name;
}
}
}