outcome_as

negmas.outcomes.outcome_as(outcome: Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]], astype: Type, issue_names: Optional[List[str]] = None)[source]

Converts the outcome to tuple, dict or any OutcomeType.

Parameters
  • outcome – The outcome to adjust type

  • astype – The type to return. None returns the outcome as it is

  • issue_names – Only needed if astype is not tuple