Skip to content

PDFURLContent

Base classes

Name Children Inherits
BasePDFContent
llmling_agent.models.content
Base for PDF document content.

⋔ Inheritance diagram

graph TD
  94096746674000["content.PDFURLContent"]
  94096746680608["content.BasePDFContent"]
  94096745529792["content.BaseContent"]
  94096720270928["schema.Schema"]
  94096710877664["main.BaseModel"]
  140089511254496["builtins.object"]
  94096746680608 --> 94096746674000
  94096745529792 --> 94096746680608
  94096720270928 --> 94096745529792
  94096710877664 --> 94096720270928
  140089511254496 --> 94096710877664

🛈 DocStrings

Bases: BasePDFContent

PDF from URL.

Source code in src/llmling_agent/models/content.py
182
183
184
185
186
187
188
189
190
191
192
class PDFURLContent(BasePDFContent):
    """PDF from URL."""

    type: Literal["pdf_url"] = Field("pdf_url", init=False)
    """URL-based PDF."""

    url: str
    """URL to the PDF document."""

    def to_pydantic_ai(self) -> DocumentUrl:
        return DocumentUrl(url=self.url)

type class-attribute instance-attribute

type: Literal['pdf_url'] = Field('pdf_url', init=False)

URL-based PDF.

url instance-attribute

url: str

URL to the PDF document.

Show source on GitHub