def build(
    player: deprecated_agent.BasicAgent,
    phone: apps.Phone,
    clock: game_clock.MultiIntervalClock,
    model: language_model.LanguageModel,
    memory_factory: blank_memories.MemoryFactory,
) -> game_master_lib.GameMaster:
  """Builds a GameMaster that simulates a player's interaction with their phone.

  Args:
    player: The player who is interacting with the phone.
    phone: The player's phone.
    clock: A clock.
    model: A language model.
    memory_factory: A memory factory for creating the GM's memory.

  Returns:
  """
  memory = memory_factory.make_blank_memory()
  phone_component = _PhoneComponent(model, player, phone)
  return game_master_lib.GameMaster(
      model=model,
      memory=memory,
      clock=clock,
      name='PhoneGameMaster',
      players=(player,),
      components=(phone_component,),
      action_spec=_PHONE_ACTION_SPEC,
      update_thought_chain=(thought_chains.identity,),
      player_observes_event=False,
  )
Builds a GameMaster that simulates a player's interaction with their phone.

  Args:
    player: The player who is interacting with the phone.
    phone: The player's phone.
    clock: A clock.
    model: A language model.
    memory_factory: A memory factory for creating the GM's memory.

  Returns:
  
examples/deprecated/phone/components/scene.py