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 (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.2.tar.gz (8.9 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.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for cocoonstack_sandbox_langchain-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3d6fd42edf463cf4f6da2ffe5c16d434279e5fdd21f8e4fa62376778e921ce71
MD5 1e33d9ecd8dfd536074cda9097d4405b
BLAKE2b-256 56eb9e3875457952c17cfdb29d3598f8a8ba051b1af30327da2975ee13b65eb5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cocoonstack_sandbox_langchain-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fe05f9aa8c29bbd81a9e25adea5b50b13598ba251b9fcf0fb34b64710e2fc55a
MD5 0584d9dbcba793b1130be11d9529d9b3
BLAKE2b-256 324ee50195706ea9ada63b165c2e0653b4f40a0bc4d58035c8d60d907d9e44fe

See more details on using hashes here.

Provenance

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

This release

0.1.2 This release

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