mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-05 16:31:36 +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
@@ -0,0 +1,18 @@
|
||||
using AIStudio.Tools.AssistantSessions;
|
||||
|
||||
namespace AIStudio.Tools.Imports;
|
||||
|
||||
/// <summary>Identifies the chat, assistant, or visual briefing that owns an import, e.g., the transcription of a media file.</summary>
|
||||
public readonly record struct ImportOwner(ImportOwnerKind Kind, string Id)
|
||||
{
|
||||
public static ImportOwner ForChat(Guid chatId) => new(ImportOwnerKind.CHAT, chatId.ToString("N"));
|
||||
|
||||
public static ImportOwner ForAssistant(AssistantSessionKey key) => new(ImportOwnerKind.ASSISTANT, key.ToString());
|
||||
|
||||
/// <summary>
|
||||
/// Creates a persistent import owner for a visual briefing.
|
||||
/// </summary>
|
||||
/// <param name="briefingId">The stable briefing identifier.</param>
|
||||
/// <returns>The import owner.</returns>
|
||||
public static ImportOwner ForVisualBriefing(Guid briefingId) => new(ImportOwnerKind.VISUAL_BRIEFING, briefingId.ToString("D"));
|
||||
}
|
||||
Reference in new issue
Block a user