Added simulated participants to the BeyondFacts Lab (#1208)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-16 14:07:28 +01:00
1 parent 92d0ff68f4
commit ef059ffd15
46 files changed
+1871 -71

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>