mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-21 02:55:49 +00:00
Moved goals and roles before knowledge in the BeyondFacts Lab (#1214)
This commit is contained in:
1 parent
761ec7001d
commit
6cdb0bc551
38 files changed
+334
-186
No files matched your search
@@ -175,6 +175,15 @@ public sealed class BflConversationService(BeyondFactsLabStore store, EmbeddedCh
|
||||
/// <returns>True while the setting allows prompt overrides and a file replaces a prompt with another text.</returns>
|
||||
public async Task<bool> UsesPromptOverridesAsync(CancellationToken token = default) => this.PromptOverridesDirectory is { } directory && (await BflPromptOverrides.FindAsync(directory, token)).Count > 0;
|
||||
|
||||
/// <summary>
|
||||
/// Finds the Markdown files in the test folder which replace no prompt of the lab, so that the lab can tell the
|
||||
/// person why they change nothing.
|
||||
/// </summary>
|
||||
/// <returns>The files relative to the test folder, see BflPromptOverrides.FindUnknown; none while the setting does not allow prompt overrides.</returns>
|
||||
/// <exception cref="IOException">The test folder cannot be read.</exception>
|
||||
/// <exception cref="UnauthorizedAccessException">The test folder cannot be read.</exception>
|
||||
public IReadOnlyList<string> FindUnknownPromptOverrides() => this.PromptOverridesDirectory is { } directory ? BflPromptOverrides.FindUnknown(directory) : [];
|
||||
|
||||
/// <summary>
|
||||
/// Puts together what a request of a chat carries beside the conversation: the system prompt, the images of the
|
||||
/// material the model may see, and the guidelines of the organization.
|
||||
|
||||
Reference in new issue
Block a user