add all requirements for implementing XAiMcpClient ...
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
namespace xAiModels.Constants
|
||||
{
|
||||
public struct XAiMcpConstants
|
||||
{
|
||||
//
|
||||
public const string XAiMcpProtocol = "2024-11-05";
|
||||
public const string XAiMcpClientName = "XAiMcpClient";
|
||||
public const string XAiMcpSessionIdentifier = "Mcp-Session-Id";
|
||||
public const string XAiMcpProtocolIdentifier = "MCP-Protocol-Version";
|
||||
|
||||
//
|
||||
public const string TextKey = "text";
|
||||
public const string ContentKey = "content";
|
||||
public const string ServerInfoNameKey = "name";
|
||||
public const string ServerInfoKey = "serverInfo";
|
||||
public const string ServerInfoVersionKey = "version";
|
||||
public const string ProtocolVersionKey = "protocolVersion";
|
||||
|
||||
//
|
||||
public const string serverInfoNameValue = "xAiApi";
|
||||
public const string serverInfoVersionValue = "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using xExceptions.Attributes;
|
||||
|
||||
namespace xAiModels.Constants
|
||||
{
|
||||
public enum XAiMcpMethods
|
||||
{
|
||||
[StringValue("initialize")]
|
||||
Initialize,
|
||||
|
||||
[StringValue("tools/list")]
|
||||
ToolsList,
|
||||
|
||||
[StringValue("tools/call")]
|
||||
ToolsCall,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user