Skip to main content

cocoonstack-sandbox-langchain

pip install cocoonstack-sandbox-langchain

LangChain tools backed by cocoon microVM sandboxes: a CocoonToolkit claims one sandbox lazily on first tool use and exposes it as StructuredTools an agent can call — shell exec, file read/write, and directory listing, with disk state persisting across calls.

from cocoonsandbox_langchain import CocoonToolkit
from langgraph.prebuilt import create_react_agent  # langgraph is a separate install

with CocoonToolkit("10.0.0.5:7777", api_token="...") as kit:
    agent = create_react_agent(model, kit.get_tools())
    agent.invoke({"messages": [("user", "run the tests in /work")]})

from_checkpoint="ck_..." branches the sandbox from a checkpoint's captured moment instead of a clean template — agents resume from prepared state (dependencies installed, repo cloned) in milliseconds.

Sync-native (each tool's function calls the stdlib-only cocoonstack-sandbox SDK directly); async agents get a coroutine bridged via asyncio.to_thread.

Full reference: https://cocoonstack.github.io/sandbox/langchain

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cocoonstack_sandbox_langchain-0.1.3.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cocoonstack_sandbox_langchain-0.1.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file cocoonstack_sandbox_langchain-0.1.3.tar.gz.

File metadata

File hashes

Hashes for cocoonstack_sandbox_langchain-0.1.3.tar.gz
Algorithm Hash digest
SHA256 48f41eb0ffcff9369fa5db9923a884d3444b4e347a2b82426b2924836fc90aac
MD5 ef41aecdbdee9a7efc6ebf7613a4019a
BLAKE2b-256 e6808fa5affdc0fe7fe643d7792a2e5ef880e8a3e2cd49e4cde693090fb7a413

See more details on using hashes here.

Provenance

The following attestation bundles were made for cocoonstack_sandbox_langchain-0.1.3.tar.gz:

Publisher: publish-pypi.yml on cocoonstack/sandbox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cocoonstack_sandbox_langchain-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for cocoonstack_sandbox_langchain-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4557925780ea66992d725eac502fa674b004d0cc6736c328d15e9fcb2bdb4652
MD5 e6f987e78155ac98bda1804039c0b919
BLAKE2b-256 1889a4bb27d0d81dc24d3bfa2e7391133fc0fc5d63ec48e386a068f2563a152c

See more details on using hashes here.

Provenance

The following attestation bundles were made for cocoonstack_sandbox_langchain-0.1.3-py3-none-any.whl:

Publisher: publish-pypi.yml on cocoonstack/sandbox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page