daily_digest/Services/ISummarizationService.cs
2025-04-12 00:27:03 +07:00

16 lines
699 B
C#
Raw 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.

using System.Threading;
using System.Threading.Tasks;
namespace DailyDigestWorker.Services
{
public interface ISummarizationService
{
/// <summary>
/// Генерирует саммари для предоставленного текста с помощью AI.
/// </summary>
/// <param name="textToSummarize">Текст для суммаризации.</param>
/// <param name="cancellationToken">Токен отмены.</param>
/// <returns>Строка с саммари или null в случае ошибки.</returns>
Task<string?> SummarizeTextAsync(string textToSummarize, CancellationToken cancellationToken);
}
}