Summary
e2b-code-interpreter is the official Python SDK for E2B's cloud code-execution sandboxes, widely used as the code-execution tool for AI agents (e.g. executing AI-generated Python to analyze data, run tests, or produce charts). The primary execution surface is Sandbox.create() followed by sandbox.run_code(ai_generated_code), which returns an Execution object containing results (stdout, stderr, charts/images, tables, text), and a structured error (name, value, traceback) when the AI-generated code fails.
This repository has zero instrumentation for E2B anywhere: no py/src/braintrust/integrations/e2b* directory, no wrapper, no nox session, no cassette directory, and no entry in py/pyproject.toml's [tool.braintrust.matrix].
What's missing
Sandbox.create() / AsyncSandbox.create() — sandbox lifecycle/creation.
sandbox.run_code() / sandbox.run_code_async() — the primary "execute AI-generated code" entrypoint; the natural place for a tool-type span capturing the submitted code as input and the Execution result (stdout/stderr/results/error) as output.
sandbox.files.write() / sandbox.files.read() — file I/O commonly paired with code execution in agent workflows.
This is directly comparable in shape to other tool-execution surfaces this repo already instruments for agent frameworks (e.g. sandboxed/tool-call execution spans in CrewAI, AutoGen, AgentScope), but for E2B's remote code-execution sandbox specifically.
Weekly downloads
Weekly downloads: 591,129 (as of 2026-09-28; https://pypistats.org/api/packages/e2b-code-interpreter/recent)
Braintrust docs status
not_found. Checked https://www.braintrust.dev/docs/guides/tracing and https://www.braintrust.dev/docs/guides/tracing/integrations (both checked 2026-09-28) — neither the tracing-integrations list ("OpenTelemetry, Temporal, Vercel AI SDK, OpenRouter SDK, LangChain, LangChain4j, LangSmith, LlamaIndex, Apollo GraphQL, Cloudflare Workers AI, DSPy, Google Discovery Engine, Instructor, LiteLLM, Ruby LLM, Spring AI, Traceloop, TrueFoundry") nor the agent-framework list ("Agno, OpenAI Agents SDK, Claude Agent SDK, Pi Coding Agent SDK, Deep Agents, LangGraph, CrewAI, AutoGen, AgentScope, Google ADK, LiveKit Agents, Mastra, Pipecat, Pydantic AI, Strands Agents SDK, Cloudflare Agents, Cloudflare AI Chat") mentions E2B or E2B Code Interpreter.
Upstream sources
Braintrust docs sources checked
Local repo files inspected
py/src/braintrust/integrations/ — no e2b/ directory
py/src/braintrust/wrappers/ — no E2B wrapper
py/pyproject.toml [tool.braintrust.matrix] — no e2b/e2b-code-interpreter entry
py/noxfile.py — no test_e2b session
- Repo-wide case-insensitive grep for
e2b_code_interpreter under py/src/braintrust/**/*.py — zero matches
Summary
e2b-code-interpreteris the official Python SDK for E2B's cloud code-execution sandboxes, widely used as the code-execution tool for AI agents (e.g. executing AI-generated Python to analyze data, run tests, or produce charts). The primary execution surface isSandbox.create()followed bysandbox.run_code(ai_generated_code), which returns anExecutionobject containingresults(stdout, stderr, charts/images, tables, text), and a structurederror(name,value,traceback) when the AI-generated code fails.This repository has zero instrumentation for E2B anywhere: no
py/src/braintrust/integrations/e2b*directory, no wrapper, no nox session, no cassette directory, and no entry inpy/pyproject.toml's[tool.braintrust.matrix].What's missing
Sandbox.create()/AsyncSandbox.create()— sandbox lifecycle/creation.sandbox.run_code()/sandbox.run_code_async()— the primary "execute AI-generated code" entrypoint; the natural place for atool-type span capturing the submitted code as input and theExecutionresult (stdout/stderr/results/error) as output.sandbox.files.write()/sandbox.files.read()— file I/O commonly paired with code execution in agent workflows.This is directly comparable in shape to other tool-execution surfaces this repo already instruments for agent frameworks (e.g. sandboxed/tool-call execution spans in CrewAI, AutoGen, AgentScope), but for E2B's remote code-execution sandbox specifically.
Weekly downloads
Weekly downloads: 591,129 (as of 2026-09-28; https://pypistats.org/api/packages/e2b-code-interpreter/recent)
Braintrust docs status
not_found. Checked https://www.braintrust.dev/docs/guides/tracing and https://www.braintrust.dev/docs/guides/tracing/integrations (both checked 2026-09-28) — neither the tracing-integrations list ("OpenTelemetry, Temporal, Vercel AI SDK, OpenRouter SDK, LangChain, LangChain4j, LangSmith, LlamaIndex, Apollo GraphQL, Cloudflare Workers AI, DSPy, Google Discovery Engine, Instructor, LiteLLM, Ruby LLM, Spring AI, Traceloop, TrueFoundry") nor the agent-framework list ("Agno, OpenAI Agents SDK, Claude Agent SDK, Pi Coding Agent SDK, Deep Agents, LangGraph, CrewAI, AutoGen, AgentScope, Google ADK, LiveKit Agents, Mastra, Pipecat, Pydantic AI, Strands Agents SDK, Cloudflare Agents, Cloudflare AI Chat") mentions E2B or E2B Code Interpreter.Upstream sources
Braintrust docs sources checked
Local repo files inspected
py/src/braintrust/integrations/— noe2b/directorypy/src/braintrust/wrappers/— no E2B wrapperpy/pyproject.toml[tool.braintrust.matrix]— noe2b/e2b-code-interpreterentrypy/noxfile.py— notest_e2bsessione2b_code_interpreterunderpy/src/braintrust/**/*.py— zero matches