Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Use json transport for rpc in SDKs
Tomas Valenta48d01df79410
diff --git a/packages/js-sdk/src/sandbox/index.ts b/packages/js-sdk/src/sandbox/index.tsindex 21ee455a0..f5021d4fa 100644--- a/packages/js-sdk/src/sandbox/index.ts+++ b/packages/js-sdk/src/sandbox/index.ts@@ -39,7 +39,7 @@ export class Sandbox extends SandboxApi {const rpcTransport = createConnectTransport({baseUrl: this.envdApiUrl,- useBinaryFormat: true,+ useBinaryFormat: false,interceptors: opts?.logger ? [createRpcLogger(opts.logger)] : undefined,})diff --git a/packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.py b/packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.pyindex 0a6fd1c2d..981827e87 100644--- a/packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.py+++ b/packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.py@@ -33,6 +33,7 @@ class Filesystem:# TODO: Fix and enable compression again — the headers compression is not solved for streaming.# compressor=e2b_connect.GzipCompressor,async_pool=pool,+ json=True,)@overloaddiff --git a/packages/python-sdk/e2b/sandbox_async/process/process.py b/packages/python-sdk/e2b/sandbox_async/process/process.pyindex ef3e6dc03..90c8b61f7 100644--- a/packages/python-sdk/e2b/sandbox_async/process/process.py+++ b/packages/python-sdk/e2b/sandbox_async/process/process.py@@ -25,6 +25,7 @@ class Process:# TODO: Fix and enable compression again — the headers compression is not solved for streaming.# compressor=e2b_connect.GzipCompressor,async_pool=pool,+ json=True,)async def list(diff --git a/packages/python-sdk/e2b/sandbox_async/pty/main.py b/packages/python-sdk/e2b/sandbox_async/pty/main.pyindex d52c2d4d2..55051dfef 100644--- a/packages/python-sdk/e2b/sandbox_async/pty/main.py+++ b/packages/python-sdk/e2b/sandbox_async/pty/main.py@@ -27,6 +27,7 @@ class Pty:# TODO: Fix and enable compression again — the headers compression is not solved for streaming.# compressor=e2b_connect.GzipCompressor,async_pool=pool,+ json=True,)async def kill(diff --git a/packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.py b/packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.pyindex 29866956a..bc33e87eb 100644--- a/packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.py+++ b/packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.py@@ -31,6 +31,7 @@ class Filesystem:# TODO: Fix and enable compression again — the headers compression is not solved for streaming.# compressor=e2b_connect.GzipCompressor,pool=pool,+ json=True,)@overloaddiff --git a/packages/python-sdk/e2b/sandbox_sync/process/main.py b/packages/python-sdk/e2b/sandbox_sync/process/main.pyindex 9e4451dba..9f0e745d8 100644--- a/packages/python-sdk/e2b/sandbox_sync/process/main.py+++ b/packages/python-sdk/e2b/sandbox_sync/process/main.py@@ -24,6 +24,7 @@ class Process:# TODO: Fix and enable compression again — the headers compression is not solved for streaming.# compressor=e2b_connect.GzipCompressor,pool=pool,+ json=True,)def list(diff --git a/packages/python-sdk/e2b/sandbox_sync/pty/main.py b/packages/python-sdk/e2b/sandbox_sync/pty/main.pyindex 3d4cbc761..9b2302e71 100644--- a/packages/python-sdk/e2b/sandbox_sync/pty/main.py+++ b/packages/python-sdk/e2b/sandbox_sync/pty/main.py@@ -27,6 +27,7 @@ class Pty:# TODO: Fix and enable compression again — the headers compression is not solved for streaming.# compressor=e2b_connect.GzipCompressor,pool=pool,+ json=True,)def kill(