fix(agent): enforce page range validation and refine pdftoppm error check

This commit is contained in:
yiling
2026-07-19 10:17:21 +08:00
parent f68ba70656
commit 6064a1449a
5 changed files with 85 additions and 4 deletions
@@ -62,6 +62,7 @@ describe('AgentChatPromptBuilder', () => {
expect(result).toContain('File Type: pdf')
expect(result).toContain('Total Pages: 15')
expect(result).toContain("call the 'read_pdf_pages' tool")
expect(result).toContain('Maximum 20 pages allowed per call.')
expect(result).not.toContain("call the 'screenshot' tool")
expect(result).not.toContain("call the 'analyze_image' tool")
})