Skip to content

DocumentOut

Base classes

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

⋔ Inheritance diagram

graph TD
  3537444842["models.DocumentOut"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3879467795 --> 3537444842
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseModel

The converted document, without its images (they are in the response's images).

Source code in src/docler_api/models.py
class DocumentOut(BaseModel):
    """The converted document, without its images (they are in the response's `images`)."""

    content: str
    title: str | None = None
    author: str | None = None
    created: datetime | None = None
    modified: datetime | None = None
    source_path: str | None = None
    mime_type: str | None = None
    metadata: dict[str, Any] = Field(default_factory=dict)

:fa-brands-github: Show source on GitHub