def build_decision_scene_game_master(
    model: language_model.LanguageModel,
    memory: associative_memory.AssociativeMemory,
    clock: game_clock.MultiIntervalClock,
    players: Sequence[entity_agent_with_logging.EntityAgentWithLogging],
    decision_action_spec: agent_lib.ActionSpec,
    payoffs: gm_components.schelling_diagram_payoffs.SchellingPayoffs,
    verbose: bool = False,
    seed: int | None = None,
) -> game_master.GameMaster:
  """Build a decision game master for decision scenes."""
  decision_env = game_master.GameMaster(
      model=model,
      memory=memory,
      clock=clock,
      name='Decision Environment',
      players=players,
      components=[payoffs],
      action_spec=decision_action_spec,
      update_thought_chain=[thought_chains_lib.identity],
      randomise_initiative=True,
      player_observes_event=False,
      concurrent_externalities=False,
      verbose=verbose,
      seed=seed,
  )
  return decision_env
Build a decision game master for decision scenes.
concordia/deprecated/factory/environment/basic_game_master.py