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

Class ContentPartPdf

src/message/types.py:111–120  ·  view source on GitHub ↗

A PDF content part.

Source from the content-addressed store, hash-verified

109 return f'PdfURL(url={repr(self.url)}, media_type={repr(self.media_type)})'
110
111class 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
122class ContentPartRefusal(BaseModel):
123 refusal: str = Field(description="The refusal message by the assistant.")

Callers 2

_analyze_pdf_fileMethod · 0.90
test_pdfFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_pdfFunction · 0.72