welsonjs/WelsonJS.Toolkit/WelsonJS.Launcher/ResourceTools/AzureAi.cs
2025-04-09 19:58:41 +09:00

29 lines
692 B
C#

using System;
using System.Net;
using System.Threading.Tasks;
namespace WelsonJS.Launcher.ResourceTools
{
public class AzureAi : IResourceTool
{
private ResourceServer Server;
private const string Prefix = "azure-ai/";
public AzureAi(ResourceServer server)
{
Server = server;
}
public bool CanHandle(string path)
{
return path.StartsWith(Prefix, StringComparison.OrdinalIgnoreCase);
}
public async Task HandleAsync(HttpListenerContext context, string path)
{
await Task.Delay(0);
// TODO: Pass Azure AI request to Azure AI Foundry
}
}
}