Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions python/langchain-floo-sandbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ finally:

Pass the backend to `create_deep_agent(model=model, backend=backend)` while the sandbox is open. The caller chooses the model and closes the sandbox.

## Analyze a CSV in one workspace

In a run of [LangChain’s sales analysis example](https://github.com/langchain-ai/docs/blob/e6d5a65d465d976551e20d41309540810e2736a3/src/oss/deepagents/data-analysis.mdx), the agent read the five rows in `sales.csv`, revised its plan, and wrote `analysis.py` before starting a project VM. Calling `backend.execute("cd /project && python3 analysis.py")` attached a micro-VM to that same workspace. The agent then read `results.json` and wrote its report. The script found 33 units sold and 840 in revenue.

For the file steps, the agent used tools backed by `backend.download_files()` and `backend.upload_files()`. These methods handle small workspace files directly. Deep Agents’ built-in file tools can invoke shell commands, which attach a VM.

## Run the tests

From this directory, run:
Expand Down