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

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 (_run calls the stdlib-only cocoonstack-sandbox SDK directly); async agents get _arun 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.1.tar.gz (8.3 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.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for cocoonstack_sandbox_langchain-0.1.1.tar.gz
Algorithm Hash digest
SHA256 135decb21ff488dd3baeb39b8ea81689720382ad38f283a3b3bce92015a2a7a6
MD5 10632b75387edb5aadd17173042b9383
BLAKE2b-256 899e5fc84fb9b9d5746fdb8edb60ffad18b09a66d3463dd4ef90b0e31080f37b

See more details on using hashes here.

Provenance

The following attestation bundles were made for cocoonstack_sandbox_langchain-0.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cocoonstack_sandbox_langchain-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24053f46ad8b955cf20057905f60a9e37e97f477fc54fbf368593b46b5a3c3b4
MD5 baab54c4ef66b312e58b4a4e18da51d5
BLAKE2b-256 660e6fb4e3aeef5d4c475677aea48bec80e29ed67a0724cbc6261388d3640b86

See more details on using hashes here.

Provenance

The following attestation bundles were made for cocoonstack_sandbox_langchain-0.1.1-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

0.1.3

2 files

0.1.2

2 files

This release

0.1.1 This release

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