Added choosing whom the test situation of the BeyondFacts Lab simulates

This commit is contained in:
Thorsten Sommer committed 2026-11-15 16:31:52 +01:00
1 parent 2104123fb5
commit 4fcc0c8727
6 files changed
+296 -3

No files matched your search

@@ -23,6 +23,14 @@ public partial class BeyondFactsLabAssistant
/// </summary>
private int ActiveStepIndex => (int)this.activeStep;
/// <summary>
/// Gets a number which changes whenever the person chooses others to simulate in the step "Test situation", whose
/// research the prompt of its conversation carries, so that the conversation counts its tokens anew.
/// </summary>
private int ChatDetailsVersion => this.activeStep is BflStep.TEST_SITUATION && this.forms.GetValueOrDefault(BflStep.TEST_SITUATION)?.Simulation is { } simulation
? HashCode.Combine(simulation.Mode, string.Join('\n', simulation.People))
: 0;
/// <summary>
/// Shows a preparation with its forms, at the step the person looked at last.
/// </summary>