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,32 @@
using AIStudio.Assistants.BeyondFactsLab;
using AIStudio.Models;
namespace AIStudio.Tests.BeyondFactsLab;
/// <summary>
/// Checks which models the BeyondFacts Lab accepts for its chats.
/// </summary>
[TestFixture]
public sealed class BflModelRequirementsTests
{
[Test]
public void AModelWithoutAStatementAboutItsWindowIsAccepted()
{
Assert.That(BflModelRequirements.HasEnoughContext(ContextWindow.UNKNOWN), Is.True);
}
[TestCase(8_192, false)]
[TestCase(BflModelRequirements.MINIMUM_CONTEXT_TOKENS - 1, false)]
[TestCase(BflModelRequirements.MINIMUM_CONTEXT_TOKENS, true)]
[TestCase(128_000, true)]
public void AKnownWindowNeedsTheMinimum(int defaultTokens, bool expected)
{
Assert.That(BflModelRequirements.HasEnoughContext(ContextWindow.Of(defaultTokens)), Is.EqualTo(expected));
}
[Test]
public void AWindowWhichOnlyAnOperatorCouldRaiseIsNotEnough()
{
Assert.That(BflModelRequirements.HasEnoughContext(ContextWindow.Of(16_384, 131_072)), Is.False, "What a model reads as it ships counts, not what it might read.");
}
}