Prerequisites
-
Install dependencies:
reportlabis required for PDF generation,python-docxfor DOCX generation, andsqlalchemyfor theSqliteDbused in the example. JSON, CSV, TXT, and HTML generation have no external dependencies. -
Set your credentials:
For OpenAI API:
Example
The following agent will generate files in different formats based on user requests.file_generation_tools.py
Generated files are always available on the
RunOutput object. Set output_directory (or save_files=True) to also save them to disk.