portia.open_source_tools.local_file_reader_tool
Tool for reading files from disk.
FileReaderToolSchema Objects
class FileReaderToolSchema(BaseModel)
Schema defining the inputs for the FileReaderTool.
FileReaderTool Objects
class FileReaderTool(Tool[str])
Finds and reads content from a local file on Disk.
run
def run(ctx: ToolRunContext, filename: str) -> str | Clarification
Run the FileReaderTool.
find_file
def find_file(file_path: Path) -> list[str]
Return a full file path or None.