reference_utils references_from_artifacts(artifacts) Source code in griptape/utils/reference_utils.py 10 11 12 13 14 15 16 17def references_from_artifacts(artifacts: list[TextArtifact]) -> list[Reference]: references = [] for a in artifacts: if a.reference is not None and a.reference not in references: references.append(a.reference) return references