A PDF URL content part.
| 96 | return f'ContentPartImage(image_url={repr(self.image_url)})' |
| 97 | |
| 98 | class PdfURL(BaseModel): |
| 99 | """A PDF URL content part.""" |
| 100 | url: str = Field(description="The URL of the PDF.") |
| 101 | type: Literal['pdf_url'] = Field(default='pdf_url', description="The type of the content part.") # type: ignore |
| 102 | |
| 103 | media_type: SupportedPdfMediaType = 'application/pdf' |
| 104 | |
| 105 | def __str__(self) -> str: |
| 106 | return str(self.url) |
| 107 | |
| 108 | def __repr__(self) -> str: |
| 109 | return f'PdfURL(url={repr(self.url)}, media_type={repr(self.media_type)})' |
| 110 | |
| 111 | class ContentPartPdf(BaseModel): |
| 112 | """A PDF content part.""" |
no outgoing calls