MCPcopy Index your code
hub / github.com/SkyworkAI/DeepResearchAgent / PdfURL

Class PdfURL

src/message/types.py:98–109  ·  view source on GitHub ↗

A PDF URL content part.

Source from the content-addressed store, hash-verified

96 return f'ContentPartImage(image_url={repr(self.image_url)})'
97
98class 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
111class ContentPartPdf(BaseModel):
112 """A PDF content part."""

Callers 2

_analyze_pdf_fileMethod · 0.90
test_pdfFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_pdfFunction · 0.72