Function typedFactToScoredTrace