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

Function test_pdf

tests/test_models.py:166–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164
165
166async def test_pdf():
167 logger.info(f"| --------------------------------------------------")
168 logger.info(f"| Testing PDF with different models")
169 models = [
170 "openrouter/gemini-3-flash-preview-plugins"
171 ]
172
173 messages = [
174 SystemMessage(content="You are a helpful assistant."),
175 HumanMessage(content=[
176 ContentPartText(text="Please analyze the PDF and provide the analysis. Only return the analysis, no other text or formatting."),
177 ContentPartPdf(pdf_url=PdfURL(url=make_file_url(file_path="tests/files/pdf.pdf"))),
178 ]),
179 ]
180
181 for model in models:
182 logger.info(f"| Testing {model}")
183 response = await model_manager(model=model, messages=messages)
184 logger.info(f"| {model} Response: {json.dumps(response.model_dump(), indent=4)}")
185 logger.info(f"| --------------------------------------------------")
186
187
188async def test_response_format():

Callers

nothing calls this directly

Calls 8

SystemMessageClass · 0.90
HumanMessageClass · 0.90
ContentPartTextClass · 0.90
ContentPartPdfClass · 0.90
PdfURLClass · 0.90
make_file_urlFunction · 0.90
infoMethod · 0.45
model_dumpMethod · 0.45

Tested by

no test coverage detected