Skip to content

PDFURLContent

Base classes

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

⋔ Inheritance diagram

graph TD
  94237904283376["content.PDFURLContent"]
  94237904270768["content.BasePDFContent"]
  94237904272160["content.BaseContent"]
  94237875526560["schema.Schema"]
  94237863989056["main.BaseModel"]
  139906220169696["builtins.object"]
  94237904270768 --> 94237904283376
  94237904272160 --> 94237904270768
  94237875526560 --> 94237904272160
  94237863989056 --> 94237875526560
  139906220169696 --> 94237863989056

🛈 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