portia.open_source_tools.pdf_reader_tool
Tool for reading PDF files and extracting text content using Mistral OCR.
PDFReaderToolSchema Objects
class PDFReaderToolSchema(BaseModel)
Input for PDFReaderTool.
PDFReaderTool Objects
class PDFReaderTool(Tool[str])
Read a PDF file and extract its text content using Mistral OCR.
run
def run(_: ToolRunContext, file_path: str) -> str
Run the PDFReaderTool.