Files
PerfReviewSummarizer/PerfReviewSummarizer.Api/Models/OpenAiSummaryRequest.cs
ZakirovT 057e1f526b init
2026-01-22 00:45:41 +03:00

48 lines
1.2 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace PerfReviewSummarizer.Api.Models;
public class OpenAiSummaryRequest
{
/// <summary>
/// Путь к репозиторию
/// </summary>
public string? RepositoryPath { get; set; }
/// <summary>
/// Дата начала периода
/// </summary>
public DateTime? StartDate { get; set; }
/// <summary>
/// Дата окончания периода
/// </summary>
public DateTime? EndDate { get; set; }
/// <summary>
/// Период: "quarter" или "halfyear"
/// </summary>
public string? Period { get; set; }
}
public class OpenAiSummaryResponse
{
/// <summary>
/// Саммари от OpenAI
/// </summary>
public string Summary { get; set; } = string.Empty;
/// <summary>
/// Информация о периоде
/// </summary>
public PeriodInfo PeriodInfo { get; set; } = new();
/// <summary>
/// Количество проанализированных коммитов
/// </summary>
public int CommitsCount { get; set; }
/// <summary>
/// Исходные сообщения коммитов
/// </summary>
public List<string> CommitMessages { get; set; } = new();
}