Adding Requirements for AiMcpServer Definition and Usage ...

This commit is contained in:
2026-11-05 14:51:59 +03:30
parent 25534f0273
commit 2d44ec8744
4 changed files with 72 additions and 33 deletions
+28
View File
@@ -0,0 +1,28 @@
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;
}
}
}