def __init__(
      self,
      inventory: Inventory,
      player_names: Sequence[str],
      targets: Mapping[str, Sequence[str]],
      pre_act_label: str = '   \n',
      verbose: bool = False,
  ):
    """Initialize a grounded inventory component tracking objects in python.

    Args:
      inventory: the inventory component to use to get the inventory of players.
      player_names: sequence of players who have an inventory.
      targets: Mapping of player name to their target items. They will be scored
        by the number of items of the specified types in their inventory.
      pre_act_label: the name of this component to use in pre_act.
      verbose: whether to print the full update chain of thought or not
    """
    self._pre_act_label = pre_act_label
    self._inventory = inventory
    self._player_names = player_names
    self._targets = targets
    self._verbose = verbose
Initialize a grounded inventory component tracking objects in python.

    Args:
      inventory: the inventory component to use to get the inventory of players.
      player_names: sequence of players who have an inventory.
      targets: Mapping of player name to their target items. They will be scored
        by the number of items of the specified types in their inventory.
      pre_act_label: the name of this component to use in pre_act.
      verbose: whether to print the full update chain of thought or not
    
concordia/components/game_master/inventory.py