A PDF content part.
| 109 | return f'PdfURL(url={repr(self.url)}, media_type={repr(self.media_type)})' |
| 110 | |
| 111 | class ContentPartPdf(BaseModel): |
| 112 | """A PDF content part.""" |
| 113 | pdf_url: PdfURL = Field(description="The URL of the PDF.") |
| 114 | type: Literal['pdf_url'] = Field(default='pdf_url', description="The type of the content part.") # type: ignore |
| 115 | |
| 116 | def __str__(self) -> str: |
| 117 | return str(self.pdf_url) |
| 118 | |
| 119 | def __repr__(self) -> str: |
| 120 | return f'ContentPartPdf(pdf_url={repr(self.pdf_url)})' |
| 121 | |
| 122 | class ContentPartRefusal(BaseModel): |
| 123 | refusal: str = Field(description="The refusal message by the assistant.") |
no outgoing calls