mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-04 04:12:01 +00:00
Kept the inputs of assistants when you leave them (#1209)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
1fbc1f4796
commit
7e2f83b19b
83 files changed
+1924
-347
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using AIStudio.Chat;
|
||||
using AIStudio.Tools.Imports;
|
||||
|
||||
namespace AIStudio.Tools.Media;
|
||||
|
||||
@@ -8,22 +9,22 @@ namespace AIStudio.Tools.Media;
|
||||
public interface IMediaTranscriptStorage
|
||||
{
|
||||
/// <summary>
|
||||
/// Determines whether this storage handles the specified media-import owner.
|
||||
/// Determines whether this storage handles the specified import owner.
|
||||
/// </summary>
|
||||
/// <param name="owner">The feature-specific media-import owner.</param>
|
||||
/// <param name="owner">The feature-specific import owner.</param>
|
||||
/// <returns><see langword="true"/> when the transcript can be stored.</returns>
|
||||
bool CanStore(MediaImportOwner owner);
|
||||
bool CanStore(ImportOwner owner);
|
||||
|
||||
/// <summary>
|
||||
/// Persists a completed transcript and returns the attachment exposed to the calling workflow.
|
||||
/// </summary>
|
||||
/// <param name="target">The stable media-import target.</param>
|
||||
/// <param name="target">The stable import target.</param>
|
||||
/// <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(
|
||||
MediaImportTarget target,
|
||||
ImportTarget target,
|
||||
string originalMediaPath,
|
||||
string transcript,
|
||||
CancellationToken token);
|
||||
|
||||
Reference in new issue
Block a user