Files
AI-Studio/app/MindWork AI Studio/Tools/Media/IMediaTranscriptStorage.cs
T

31 lines
1.2 KiB
C#
Raw Normal View History

2026-08-02 21:41:12 +02:00
using AIStudio.Chat;
using AIStudio.Tools.Imports;
2026-08-02 21:41:12 +02:00
namespace AIStudio.Tools.Media;
/// <summary>
/// Persists a completed media transcript for a feature-specific owner.
/// </summary>
public interface IMediaTranscriptStorage
{
/// <summary>
/// Determines whether this storage handles the specified import owner.
2026-08-02 21:41:12 +02:00
/// </summary>
/// <param name="owner">The feature-specific import owner.</param>
2026-08-02 21:41:12 +02:00
/// <returns><see langword="true"/> when the transcript can be stored.</returns>
bool CanStore(ImportOwner owner);
2026-08-02 21:41:12 +02:00
/// <summary>
/// Persists a completed transcript and returns the attachment exposed to the calling workflow.
/// </summary>
/// <param name="target">The stable import target.</param>
2026-08-02 21:41:12 +02:00
/// <param name="originalMediaPath">The original media path.</param>
/// <param name="transcript">The completed transcript text.</param>
/// <param name="token">The cancellation token.</param>
/// <returns>The attachment representing the persisted transcript.</returns>
Task<FileAttachment> StoreAsync(
ImportTarget target,
2026-08-02 21:41:12 +02:00
string originalMediaPath,
string transcript,
CancellationToken token);
}