Skip to content

PDFURLContent

Base classes

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

⋔ Inheritance diagram

graph TD
  94060279056896["content.PDFURLContent"]
  94060279273664["content.BasePDFContent"]
  94060279310192["content.BaseContent"]
  94060260503136["schema.Schema"]
  94060251496624["main.BaseModel"]
  140544442243552["builtins.object"]
  94060279273664 --> 94060279056896
  94060279310192 --> 94060279273664
  94060260503136 --> 94060279310192
  94060251496624 --> 94060260503136
  140544442243552 --> 94060251496624

🛈 DocStrings

Bases: BasePDFContent

PDF from URL.

Source code in src/llmling_agent/models/content.py
172
173
174
175
176
177
178
179
180
181
182
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