..
    For licensing see accompanying LICENSE file.
    Copyright (C) 2026 Apple Inc. All Rights Reserved.

Attachment
==========

This page documents the Attachment classes for passing images to a model.

.. note::
   **Swift Equivalent:** This Python API corresponds to the `Attachment <https://developer.apple.com/documentation/foundationmodels/attachment>`_ protocol in the Swift Foundation Models Framework.

Attachment Class
----------------

.. autoclass:: apple_fm_sdk.Attachment
   :members:
   :undoc-members:

ImageAttachment Class
---------------------

.. autoclass:: apple_fm_sdk.ImageAttachment
   :members:
   :undoc-members:

PromptError Class
-----------------

.. autoclass:: apple_fm_sdk.PromptError
   :members:
   :undoc-members:

ImagePromptError Class
----------------------

.. autoclass:: apple_fm_sdk.ImagePromptError
   :members:
   :undoc-members:
