[bot] Instrument E2B Code Interpreter (591,129 weekly downloads)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
调研方向
Start by reading the existing integrations and wrappers under py/src/braintrust/integrations/ and py/src/braintrust/wrappers/, then compare the CrewAI, AutoGen, and AgentScope instrumentation mentioned in the issue. Check py/pyproject.toml and py/noxfile.py for the integration matrix and test-session conventions; done means the listed E2B lifecycle, execution, and file-I/O surfaces are instrumented with coverage for their outputs and errors.
由索引模型根据 Issue 内容生成。
描述
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 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
- PyPI: https://pypi.org/project/e2b-code-interpreter/
- GitHub: https://github.com/e2b-dev/code-interpreter
- Docs (code execution API): https://docs.e2b.dev/code-interpreting/analyze-data-with-ai
Braintrust docs sources checked
- https://www.braintrust.dev/docs/guides/tracing (checked 2026-09-28)
- https://www.braintrust.dev/docs/guides/tracing/integrations (checked 2026-09-28)
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_e2bsession- Repo-wide case-insensitive grep for
e2b_code_interpreterunderpy/src/braintrust/**/*.py— zero matches
- 主要语言
- Python
- 星标
- 21
- 派生
- 23
- 平均合并
- 19 小时 55 分钟
- 30 天内合并 PR
- 95
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
braintrustdata/braintrust-sdk-python 的其他 Issue
-
feature python
难度 2/5 1-3 小时 新手友好度 76/100
braintrustdata/braintrust-sdk-python#868 ·
维护者通常 1 天内回复
-
feature integration: mistral python
难度 2/5 1-3 小时 新手友好度 75/100
braintrustdata/braintrust-sdk-python#867 ·
维护者通常 1 天内回复
-
[bot] Google GenAI: streaming responses drop `url_context_metadata` that non-streaming responses preserve可能已有人在做 @Kayvan-Zahiri 于 6 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 86/100
braintrustdata/braintrust-sdk-python#774 ·
维护者通常 1 天内回复
-
OpenAI: trace computer-use Agents session items and capture Responses `access_programs`可能已有人在做 @AbhiPrasad 于 2 天前认领。 未关闭feature integration: openai python
braintrustdata/braintrust-sdk-python#869 · 已指派 1 人 ·
维护者通常 1 天内回复
-
feature python
难度 3/5 1-2 天 新手友好度 72/100
braintrustdata/braintrust-sdk-python#866 ·
维护者通常 1 天内回复
查看 braintrustdata/braintrust-sdk-python 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 64/100
agrc/palletjack#208 ·
-
status/needs-triage type/bug
难度 2/5 1-3 小时 新手友好度 85/100
PKU-YuanGroup/OpenAI4S#218 ·
维护者通常 1 天内回复
-
Test Leakage可能已有人在做 @garland3 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 90/100
sandialabs/atlas-ui-3#1030 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 84/100
aws-samples/sample-ai-persona#151 ·
维护者通常 1 天内回复