This example shows how to use bu-agent-sdk with E2B's Code Interpreter SDK for data analysis. The agent analyzes CSV data and generates visualizations.
uv sync- Copy
.env.templateto.env - Get E2B API key
- Get Anthropic API key
uv run python main.pyThe agent will:
- Spin up an E2B sandbox with pandas, numpy, matplotlib
- Upload
data/employees.csv - Analyze the data and generate charts
- Download charts to
output/