Skip to content

ImageOut

Base classes

Name Children Inherits
BaseModel
pydantic.main
!!! abstract "Usage Documentation"

⋔ Inheritance diagram

graph TD
  3451861847["models.ImageOut"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3879467795 --> 3451861847
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseModel

An image of the document; markdown references it by filename (or id).

Source code in src/docler_api/models.py
class ImageOut(BaseModel):
    """An image of the document; markdown references it by `filename` (or `id`)."""

    id: str
    mime_type: str
    filename: str | None = None
    description: str | None = None
    metadata: dict[str, Any] = Field(default_factory=dict)
    content: str | None = None
    """Base64 image data; None with `images=none`."""

content class-attribute instance-attribute

content: str | None = None

Base64 image data; None with images=none.

:fa-brands-github: Show source on GitHub