Adapt dynamic question difficulty to learner Elo
This commit is contained in:
@@ -19,6 +19,7 @@ public sealed class DynamicQuestionBlueprint
|
||||
public int Difficulty { get; set; } = 3;
|
||||
public int QualityStandardVersion { get; set; } = 1;
|
||||
public string CorrectConceptId { get; set; } = "";
|
||||
public int BaseBlueprintVersion { get; set; }
|
||||
public bool IsPublished { get; set; } = true;
|
||||
public string StemTemplate { get; set; } = "";
|
||||
public string LeadIn { get; set; } = "";
|
||||
@@ -41,6 +42,9 @@ public sealed class DynamicQuestionBlueprint
|
||||
public sealed class DynamicCaseFamily
|
||||
{
|
||||
public string Id { get; set; } = "";
|
||||
public string BaseFamilyId { get; set; } = "";
|
||||
public string DifficultyTier { get; set; } = "standard";
|
||||
public int NominalElo { get; set; } = 1050;
|
||||
public string StemTemplate { get; set; } = "";
|
||||
public string LeadIn { get; set; } = "";
|
||||
public Dictionary<string, DynamicVariableDefinition> Variables { get; set; } = [];
|
||||
@@ -123,6 +127,9 @@ public sealed class DynamicGenerationClaims
|
||||
public string Nonce { get; set; } = "";
|
||||
public int GeneratorVersion { get; set; } = 1;
|
||||
public string CaseFamilyId { get; set; } = "";
|
||||
public string DifficultyTier { get; set; } = "";
|
||||
public int EffectiveAbilityElo { get; set; }
|
||||
public int FamilyElo { get; set; }
|
||||
public DateTime ExpiresUtc { get; set; }
|
||||
}
|
||||
|
||||
@@ -204,6 +211,10 @@ public sealed class DynamicQuestionAttempt
|
||||
public string BlueprintExternalId { get; set; } = "";
|
||||
public int BlueprintVersion { get; set; }
|
||||
public string ObjectiveId { get; set; } = "";
|
||||
public string CaseFamilyId { get; set; } = "";
|
||||
public string DifficultyTier { get; set; } = "";
|
||||
public int EffectiveAbilityElo { get; set; }
|
||||
public int FamilyElo { get; set; }
|
||||
public string ChoiceId { get; set; } = "";
|
||||
public bool IsCorrect { get; set; }
|
||||
public bool IsSkip { get; set; }
|
||||
@@ -224,6 +235,22 @@ public sealed class DynamicObjectiveMastery
|
||||
public DateTime LastSeenUtc { get; set; }
|
||||
}
|
||||
|
||||
public sealed class DynamicFamilyRating
|
||||
{
|
||||
[BsonId]
|
||||
[BsonRepresentation(BsonType.ObjectId)]
|
||||
public string? Id { get; set; }
|
||||
public string BlueprintExternalId { get; set; } = "";
|
||||
public int BlueprintVersion { get; set; }
|
||||
public string CaseFamilyId { get; set; } = "";
|
||||
public string DifficultyTier { get; set; } = "";
|
||||
public int NominalElo { get; set; }
|
||||
public int Elo { get; set; }
|
||||
public int Attempts { get; set; }
|
||||
public int Correct { get; set; }
|
||||
public DateTime UpdatedUtc { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
public sealed class DynamicGenerationDescriptor
|
||||
{
|
||||
public string BlueprintExternalId { get; set; } = "";
|
||||
@@ -231,4 +258,7 @@ public sealed class DynamicGenerationDescriptor
|
||||
public int GeneratorVersion { get; set; }
|
||||
public string Seed { get; set; } = "";
|
||||
public string CaseFamilyId { get; set; } = "";
|
||||
public string DifficultyTier { get; set; } = "";
|
||||
public int FamilyElo { get; set; }
|
||||
public int EffectiveAbilityElo { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user