Skip to main content
This example serves an agent that generates files (JSON, CSV, PDF, DOCX, TXT, HTML) through AgentOS using the FileGenerationTools toolkit.
file_generation_os.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run the example

Save the code above as file_generation_os.py, then run:
Full source: cookbook/05_agent_os/file_generation/file_generation_os.py