43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using ManagerService.Data;
|
|
using System.Collections.Generic;
|
|
|
|
namespace ManagerService.DTOs
|
|
{
|
|
public class AiChatRequest
|
|
{
|
|
public string Message { get; set; }
|
|
public string InstanceId { get; set; }
|
|
public AppType AppType { get; set; }
|
|
public string ConfigurationId { get; set; } // null = scope instance, fourni = scope configuration
|
|
public string Language { get; set; }
|
|
public List<AiChatMessage> History { get; set; } = new();
|
|
}
|
|
|
|
public class AiChatMessage
|
|
{
|
|
public string Role { get; set; } // "user" | "assistant"
|
|
public string Content { get; set; }
|
|
}
|
|
|
|
public class AiCardDTO
|
|
{
|
|
public string Title { get; set; }
|
|
public string Subtitle { get; set; }
|
|
public string? Icon { get; set; }
|
|
}
|
|
|
|
public class NavigationActionDTO
|
|
{
|
|
public string SectionId { get; set; }
|
|
public string SectionTitle { get; set; }
|
|
public string SectionType { get; set; }
|
|
}
|
|
|
|
public class AiChatResponse
|
|
{
|
|
public string Reply { get; set; }
|
|
public List<AiCardDTO>? Cards { get; set; }
|
|
public NavigationActionDTO? Navigation { get; set; }
|
|
}
|
|
}
|