Skip to main content
Supported file types:
  • JSON
  • CSV
  • PDF
  • DOCX
  • TXT
  • HTML

Prerequisites

  1. Install dependencies:
    reportlab is required for PDF generation, python-docx for DOCX generation, and sqlalchemy for the SqliteDb used in the example. JSON, CSV, TXT, and HTML generation have no external dependencies.
  2. 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.

Toolkit Params

Toolkit Functions

Developer Resources