Skip to content

docs: make the E2B streaming example runnable - #33

Closed
xiehuanyi wants to merge 1 commit into
cased:mainfrom
xiehuanyi:docs/runnable-streaming-example
Closed

xiehuanyi wants to merge 1 commit into
cased:mainfrom
xiehuanyi:docs/runnable-streaming-example

Conversation

@xiehuanyi

Copy link
Copy Markdown

Copying the README Streaming Execution example fails before execution because E2BProvider.create_sandbox requires a SandboxConfig. After supplying it, the example still sends a bare Python loop to the command runner, which expects a shell command. Pass a config, invoke Python with safely quoted source, and destroy the example sandbox in finally. Clarify that E2B emits chunks after execution completes, matching its implementation.

Validation: reproduced both the missing-argument failure and invalid shell syntax; executed the exact corrected README block with the real E2B stream_execution implementation, a local shell and an offline provider, verifying output 0 through 9 and cleanup. The full suite excluding credential-dependent integration tests passes. Ruff and Black pass. Mypy was attempted and reports 57 existing errors in unchanged source files; this PR edits only README. No external API calls were made.

AI assistance: prepared and verified with OpenAI Codex.

Copilot AI balanced review requested due to automatic review settings October 7, 2026 10:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@xiehuanyi xiehuanyi closed this Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants