teff.tool.builtin.pdf¶
teff.tool.builtin.pdf
¶
PDF read tool — extract text from a PDF file.
Classes:
| Name | Description |
|---|---|
PDFReadTool |
Extract text from a PDF file. |
PDFReadTool
¶
Bases: Tool
Extract text from a PDF file.
Requires pypdf (from teff[tools]). Returns the text of each
page, optionally limited to max_chars characters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
dict | None
|
Optional dict. Currently unused, kept for config parity. |
None
|
Source code in teff/tool/builtin/pdf.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | |