Initial commit

This commit is contained in:
2026-04-23 21:38:24 -04:00
commit 63e12a9636
1762 changed files with 1672620 additions and 0 deletions
@@ -0,0 +1,23 @@
namespace PowderCoating.Application.Interfaces;
public interface IAiHelpService
{
/// <summary>
/// Send a message to the AI help assistant and get a response.
/// </summary>
/// <param name="conversationHistory">Prior turns: alternating user/assistant messages.</param>
/// <param name="userMessage">The current user message.</param>
/// <param name="tenantContext">Read-only context about the current user and company.</param>
Task<string> SendMessageAsync(
List<AiHelpMessage> conversationHistory,
string userMessage,
string systemPrompt);
}
public record AiHelpMessage(string Role, string Content);
public record AiHelpTenantContext(
string CompanyName,
string UserRole,
string UserName,
string? SubscriptionPlan);