56 lines
1.5 KiB
C#
56 lines
1.5 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 string? ImageUrl { get; set; }
|
|
}
|
|
|
|
public class AiChatResponse
|
|
{
|
|
public string Reply { get; set; }
|
|
public List<AiCardDTO>? Cards { get; set; }
|
|
public NavigationActionDTO? Navigation { get; set; }
|
|
}
|
|
|
|
public class AiTranslateRequest
|
|
{
|
|
public string Text { get; set; }
|
|
public string SourceLang { get; set; }
|
|
public List<string> TargetLangs { get; set; } = new();
|
|
}
|
|
|
|
public class AiTranslateResponse
|
|
{
|
|
public Dictionary<string, string> Translations { get; set; } = new();
|
|
}
|
|
}
|