Skip to main content
This example demonstrates how tools can access and process files (PDFs, documents, etc.) passed to the agent. It shows uploading a PDF file, processing it with a custom tool, and having the LLM respond based on the extracted content.

Code

file_input_for_tool.py

Usage

1

Set up your virtual environment

2

Set your API key

3

Install dependencies

4

Run Agent