Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
udpate content
Vasek Mlejnsky39c383c3da28
diff --git a/apps/docs/src/app/examples/clone-repo/page.mdx b/apps/docs/src/app/examples/clone-repo/page.mdxnew file mode 100644index 000000000..9ee84a924--- /dev/null+++ b/apps/docs/src/app/examples/clone-repo/page.mdx@@ -0,0 +1 @@+# Clone GitHub Repository\ No newline at end of filediff --git a/apps/docs/src/app/getting-started/basics/page.mdx b/apps/docs/src/app/getting-started/basics/page.mdxindex 50f8993a2..2e91e42e0 100644--- a/apps/docs/src/app/getting-started/basics/page.mdx+++ b/apps/docs/src/app/getting-started/basics/page.mdx@@ -14,7 +14,7 @@ export const sections = [# Basic UsageFollowing code snippets should get you going fast with primitives in our SDK.-For more real-life scenarios head to the [Examples section](./examples/overview). {{ className: 'lead' }}+{/* For more real-life scenarios head to the [Examples section](./examples/overview). {{ className: 'lead' }} */}There are two main primitives in our SDK that you use to interact with the cloud playground:- [Filesystem](/getting-started/basics#filesystem)diff --git a/apps/docs/src/app/playgrounds/limitations/page.mdx b/apps/docs/src/app/playgrounds/limitations/page.mdxindex cf22b4864..057177919 100644--- a/apps/docs/src/app/playgrounds/limitations/page.mdx+++ b/apps/docs/src/app/playgrounds/limitations/page.mdx@@ -13,7 +13,8 @@ export const sections = [If you need more resources, please [contact us](mailto:[email protected]) with your use case.### Customization-We currently offer playgrounds with following preinstalled binaires:+We're working on completely customizable playgrounds. In the meantime,+we currently offer playgrounds with following preinstalled binaires:- Nodejs- Bash- Python3@@ -29,6 +30,8 @@ similarly `Go` playground will have preinstalled runtime to run `Go` scripts andHowever, you're free to install any other binaries, libraries, packagets, etc on your playground once you start it.++<CodeGroup>```js {{ language: 'js', snippet: 'js/quickstart.js' }}```diff --git a/apps/docs/src/app/playgrounds/overview/page.mdx b/apps/docs/src/app/playgrounds/overview/page.mdxindex 7327c2709..9adcd603d 100644--- a/apps/docs/src/app/playgrounds/overview/page.mdx+++ b/apps/docs/src/app/playgrounds/overview/page.mdx@@ -13,10 +13,10 @@ Each active instance of your AI agent or app gets its own AI playground. You canThe AI playgorunds run on E2B's cloud infrastructure. Use our [SDK](/getting-started/installation) to create and control the AI playground.-## Use cases+{/* ## Use cases- Use case 1- Use case 2-- Use case 3+- Use case 3 */}## Create AI Playgrounddiff --git a/apps/docs/src/app/pricing/page.mdx b/apps/docs/src/app/pricing/page.mdxindex b646645d3..f146e49f5 100644--- a/apps/docs/src/app/pricing/page.mdx+++ b/apps/docs/src/app/pricing/page.mdx@@ -4,9 +4,7 @@ export const metadata = {}# Pricing---E2B is currently in beta and free to use. {{ className: 'lead' }}+**E2B is currently in beta and free to use.** {{ className: 'lead' }}We're going to offer both free and premium tiers in the future. Pricing will be based on usage of our [cloud playgrounds](/playgrounds/overview) through the SDK.diff --git a/apps/docs/src/code/js/basics/init.js b/apps/docs/src/code/js/basics/init.jsnew file mode 100644index 000000000..842b71ad7--- /dev/null+++ b/apps/docs/src/code/js/basics/init.js@@ -0,0 +1,6 @@+import { Session } from '@e2b/sdk'++const session = await Session.create({+ id: 'Nodejs',+})+await session.close()diff --git a/apps/docs/src/code/js/quickstart.js b/apps/docs/src/code/js/quickstart.jsindex 21e47cfc3..310332b16 100644--- a/apps/docs/src/code/js/quickstart.js+++ b/apps/docs/src/code/js/quickstart.js@@ -3,6 +3,7 @@ import { Session } from '@e2b/sdk'// `id` can also be one of:// 'Nodejs', 'Bash', 'Python3', 'Java', 'Go', 'Rust', 'PHP', 'Perl', 'DotNET'// We're working on custom environments.-const s = await Session.create({+const session = await Session.create({id: 'Nodejs',})+await session.close()diff --git a/apps/docs/src/code/python/basics/fs_watch.py b/apps/docs/src/code/python/basics/fs_watch.pyindex e01e046f3..21d1d69f0 100644--- a/apps/docs/src/code/python/basics/fs_watch.py+++ b/apps/docs/src/code/python/basics/fs_watch.py@@ -9,7 +9,6 @@ async def create_watcher(session):async def main():session = await Session.create(id="Nodejs")-create_watcher(session)for i in range(10):diff --git a/apps/docs/src/code/python/basics/init.py b/apps/docs/src/code/python/basics/init.pyindex d74abdec0..e812aa9d9 100644--- a/apps/docs/src/code/python/basics/init.py+++ b/apps/docs/src/code/python/basics/init.py@@ -3,7 +3,6 @@ from e2b import Sessionasync def main():session = await Session.create(id="Nodejs")-await session.close()asyncio.new_event_loop().run_until_complete(main())\ No newline at end of filediff --git a/apps/docs/src/components/Navigation.tsx b/apps/docs/src/components/Navigation.tsxindex f04adce24..9719ad329 100644--- a/apps/docs/src/components/Navigation.tsx+++ b/apps/docs/src/components/Navigation.tsx@@ -265,8 +265,8 @@ export const navigation = [// {// title: 'Examples',// links: [- // { title: 'Dynamically install dependencies', href: '/examples/deps' },// { title: 'Clone GitHub Repository', href: '/examples/clone-repo' },+ // { title: 'Dynamically install dependencies', href: '/examples/deps' },// { title: 'Run Any Code', href: '/examples/run-code' },// { title: 'Get Output From Linter', href: '/examples/linter' },// { title: 'Static Code Analysis', href: '/examples/static-code-analysis' },