Skip to main content
Tools can access files passed to the agent. This example passes sample PDF-like bytes to a custom tool, simulates OCR, and returns the simulated content to the model.

Code

file_input_for_tool.py

Usage

1

Set up your virtual environment

2

Set your API key

3

Install dependencies

4

Run Agent