reference_utils
Adapted from the Griptape AI Framework documentation.
Source Code in griptape/utils/reference_utils.py
def 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
Could this page be better? Report a problem or suggest an addition!