From 6ed98f1949806724fb61cb2c81c334bbb85c6b9f Mon Sep 17 00:00:00 2001 From: Patrick Donohoe Date: Thu, 3 Dec 2026 02:32:00 -0500 Subject: [PATCH 1/2] Show when a Deep Agents workspace attaches a VM --- python/langchain-floo-sandbox/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/langchain-floo-sandbox/README.md b/python/langchain-floo-sandbox/README.md index 5f2f8e9..c255850 100644 --- a/python/langchain-floo-sandbox/README.md +++ b/python/langchain-floo-sandbox/README.md @@ -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("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: From 8539bd1470b4845b246edfcd3231c6f1369c8bd8 Mon Sep 17 00:00:00 2001 From: Patrick Donohoe Date: Thu, 3 Dec 2026 02:32:39 -0500 Subject: [PATCH 2/2] Use the command recorded in the sales analysis run --- python/langchain-floo-sandbox/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/langchain-floo-sandbox/README.md b/python/langchain-floo-sandbox/README.md index c255850..833a576 100644 --- a/python/langchain-floo-sandbox/README.md +++ b/python/langchain-floo-sandbox/README.md @@ -31,7 +31,7 @@ Pass the backend to `create_deep_agent(model=model, backend=backend)` while the ## 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("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. +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.