from typing import List
from typing import Tuple
from typing import Set


def get_inf_req(triple_list: List[tuple]) -> Tuple[Set[tuple], Set[tuple]]:
    """Save request type and inform type results respectively according to slot type.

    Args:
        triple_list: preds or ground truth (domain, slot, value)

    Returns:
        request, inform triple results
    """
    request = set()
    inform = set()
    for triple in triple_list:
        slot = triple[1]
        if slot == "Request":
            request.add(triple)
        else:
            inform.add(triple)
    return request, inform