Implement XAiMcpServer Stuffs ...
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
using System;
|
||||
using xModels.Base;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace xAiModels.Models.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// An MCP Server Descriptor for Adding Tools to XAI ...
|
||||
/// </summary>
|
||||
public class XAiMcpServer : XBaseGuidIDEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// Owner ...
|
||||
/// </summary>
|
||||
[Required]
|
||||
[StringLength(255)]
|
||||
public string OwnerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// MCP Server Name ...
|
||||
/// </summary>
|
||||
[Required]
|
||||
[StringLength(255)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Description ...
|
||||
/// </summary>
|
||||
[StringLength(1000)]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Enabled or Disabled ...
|
||||
/// </summary>
|
||||
public bool Enabled { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Environment Variables as JSON Object ...
|
||||
/// </summary>
|
||||
public string EnvironmentVariables { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Endpoint to Connect ...
|
||||
/// </summary>
|
||||
[StringLength(1000)]
|
||||
public string Endpoint { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Headers List as Json Object ...
|
||||
/// </summary>
|
||||
public string Headers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Timout Secconds ...
|
||||
/// </summary>
|
||||
public int TimeoutSeconds { get; set; } = 30;
|
||||
|
||||
public DateTime CreatedOn { get; set; }
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user