Compare commits

..
2 Commits
Author SHA1 Message Date
saherelm 33dda6bee7 Handle Authentication and Authorization in xAiMcpServer ... 2026-11-05 20:08:43 +03:30
saherelm 7ba0916461 adding datetime zone library ... 2026-11-05 18:12:50 +03:30
3 changed files with 15 additions and 0 deletions
+12
View File
@@ -20,6 +20,18 @@ namespace xAiModels.Attributes
/// <value></value>
public string Description { get; set; }
/// <summary>
/// Specify it's Required to Authenticated or not ...
/// </summary>
/// <value></value>
public bool RequiresAuthentication { get; set; } = false;
/// <summary>
/// Authorization and Policiy ...
/// </summary>
/// <value></value>
public string RequiredPolicy { get; set; } = string.Empty;
public XAiMcpToolAttribute(string name = null)
{
Name = name;
+2
View File
@@ -10,6 +10,8 @@ namespace xAiModels.Models
public string Name { get; set; }
public string Description { get; set; }
public JObject InputSchema { get; set; }
public string RequiredPolicy { get; set; }
public bool RequiresAuthentication { get; set; } = false;
public Func<JObject, CancellationToken, Task<string>> Execute { get; set; }
}
}
+1
View File
@@ -36,6 +36,7 @@
<!-- Dependencies -->
<ItemGroup>
<PackageReference Include="OpenAI" Version="2.14.0" />
<PackageReference Include="TimeZoneConverter" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.AI" Version="10.4.1" />
<PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="10.10.0" />
</ItemGroup>