24 lines
790 B
C#
24 lines
790 B
C#
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);
|