Skip to content

symfonic.evals.attachment_evidence

attachment_evidence

Payload-safe identity evidence for ordered multimodal attachments.

attachment_delivery_manifest

attachment_delivery_manifest(values: Sequence[Any]) -> tuple[tuple[str, ...], ...]

Return ordered kind/source/MIME/digest rows without attachment content.

Accepts public Attachment values and provider-wire blocks. The digest is over decoded bytes for base64 content and over the URL bytes otherwise; therefore the same MIME type carrying different content never compares equal, while reports and assertion failures disclose no payload.

Source code in src/symfonic/evals/attachment_evidence.py
def attachment_delivery_manifest(values: Sequence[Any]) -> tuple[tuple[str, ...], ...]:
    """Return ordered kind/source/MIME/digest rows without attachment content.

    Accepts public ``Attachment`` values and provider-wire blocks.  The digest
    is over decoded bytes for base64 content and over the URL bytes otherwise;
    therefore the same MIME type carrying different content never compares
    equal, while reports and assertion failures disclose no payload.
    """
    return tuple(_row(value) for value in values)