Added the guided chat to the BeyondFacts Lab (#1177)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-09 09:55:01 +01:00
1 parent e77645f44c
commit 79e0c80031
55 files changed
+3481 -72

No files matched your search

@@ -0,0 +1,27 @@
using AIStudio.Assistants.BeyondFactsLab;
namespace AIStudio.Tools.Services;
/// <summary>
/// Where the cleanup of the provenance store at the start finds a chat: in a workspace, among the temporary chats,
/// or in a preparation of the BeyondFacts Lab.
/// </summary>
/// <remarks>
/// Create it with InWorkspace or InLab.
/// </remarks>
/// <param name="WorkspaceId">The workspace of a chat outside the lab, Guid.Empty for a temporary chat.</param>
/// <param name="LabThread">The step of the preparation a chat of the lab belongs to, or null for any other chat.</param>
public readonly record struct StoredChatLocation(Guid WorkspaceId, BflThreadLocation? LabThread)
{
/// <summary>
/// Gets the place of a chat in a workspace or among the temporary chats.
/// </summary>
/// <param name="workspaceId">The workspace, Guid.Empty for a temporary chat.</param>
public static StoredChatLocation InWorkspace(Guid workspaceId) => new(workspaceId, null);
/// <summary>
/// Gets the place of a chat of the BeyondFacts Lab.
/// </summary>
/// <param name="thread">The step of the preparation the chat belongs to.</param>
public static StoredChatLocation InLab(BflThreadLocation thread) => new(Guid.Empty, thread);
}