Skip to content

Conversation

askdevai-bot
Copy link

Summary

This PR adds comprehensive LLM-friendly documentation (LLM.md) to the E2B repository. The documentation provides a complete API reference for all E2B components in a format optimized for consumption by Large Language Models and AI assistants.

What's Added

  • Complete API Reference: Covers Python SDK, JavaScript/TypeScript SDK, and CLI tool
  • Code Examples: Practical examples for all major functions and classes
  • Quick Start Guides: Easy-to-follow setup and usage instructions
  • Structured Format: Organized for optimal LLM consumption and developer reference

Benefits

  • Makes E2B APIs more accessible to AI assistants and developers
  • Provides a single comprehensive reference document
  • Includes practical examples for all user-facing functionality
  • Follows consistent formatting for better readability

File Details

  • File: LLM.md
  • Size: 1,516 lines
  • Coverage: All user-facing APIs across the E2B ecosystem

Testing

The documentation has been verified to include:

  • All major classes and functions from the Python SDK
  • All major classes and functions from the JavaScript/TypeScript SDK
  • All CLI commands and options
  • Proper code examples and usage patterns

A developer on Askdev.AI requested this update

This comprehensive documentation provides:
- Complete API reference for Python, JavaScript/TypeScript, and CLI
- Code examples for all major functions and classes
- Quick start guides and usage patterns
- Structured format optimized for LLM consumption

The documentation covers all user-facing APIs across the E2B SDK ecosystem,
making it easier for developers and AI assistants to understand and use E2B.
Copy link

changeset-bot bot commented Jul 13, 2025

⚠️ No Changeset found

Latest commit: a8de26b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Comment on lines +146 to +156
async def create(
cls,
template: Optional[str] = None,
timeout: Optional[int] = None,
metadata: Optional[Dict[str, str]] = None,
envs: Optional[Dict[str, str]] = None,
api_key: Optional[str] = None,
domain: Optional[str] = None,
debug: Optional[bool] = None,
connection_config: Optional[ConnectionConfig] = None
) -> "AsyncSandbox"
Copy link
Contributor

Choose a reason for hiding this comment

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

The AsyncSandbox.create() method is missing the @classmethod decorator that's present on the connect() method below it. This inconsistency could lead to confusion since both are intended to be class methods. Adding the decorator would maintain consistency in the API documentation.

Suggested change
async def create(
cls,
template: Optional[str] = None,
timeout: Optional[int] = None,
metadata: Optional[Dict[str, str]] = None,
envs: Optional[Dict[str, str]] = None,
api_key: Optional[str] = None,
domain: Optional[str] = None,
debug: Optional[bool] = None,
connection_config: Optional[ConnectionConfig] = None
) -> "AsyncSandbox"
@classmethod
async def create(
cls,
template: Optional[str] = None,
timeout: Optional[int] = None,
metadata: Optional[Dict[str, str]] = None,
envs: Optional[Dict[str, str]] = None,
api_key: Optional[str] = None,
domain: Optional[str] = None,
debug: Optional[bool] = None,
connection_config: Optional[ConnectionConfig] = None
) -> "AsyncSandbox"

Spotted by Diamond

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

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.

1 participant