fraudtwin.ResolvedDifficulty#

class fraudtwin.ResolvedDifficulty(**data)[source][source]#

Bases: BaseModel

Complete, hashable M12 difficulty configuration.

Parameters:
  • enabled (bool)

  • resolver_version (str)

  • requested_difficulty (int | None)

  • requested_controls (dict[str, float | None])

  • resolved_controls (dict[str, float])

  • scenario_transformations (dict[str, dict[str, object]])

  • effective_configuration_hash (str)

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

property level: int | None#

Return the requested level for convenient API consumers.

plan(scenario)[source][source]#

Return the immutable plan for one scenario.

Return type:

ScenarioDifficultyPlan

Parameters:

scenario (str)