LangChain tools backed by cocoon microVM sandboxes
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cocoonstack_sandbox_langchain-0.1.0.tar.gz.
File metadata
- Download URL: cocoonstack_sandbox_langchain-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78644e053d1009b70ae2e4135cae7bf3a726c6e03d62f863bf0a1bef236a97f7
|
|
| MD5 |
273a19565df33bcbe00ce2dd9ef81691
|
|
| BLAKE2b-256 |
b27505b42387c298a7f0e8c33fe84cb1f6c377ec23aec9d1294aa95dc17d3ade
|
Provenance
The following attestation bundles were made for cocoonstack_sandbox_langchain-0.1.0.tar.gz:
Publisher:
publish-pypi.yml on cocoonstack/sandbox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cocoonstack_sandbox_langchain-0.1.0.tar.gz -
Subject digest:
78644e053d1009b70ae2e4135cae7bf3a726c6e03d62f863bf0a1bef236a97f7 - Sigstore transparency entry: 2096155775
- Sigstore integration time:
-
Permalink:
cocoonstack/sandbox@14091ca821c4d0d0ef94fcf17711514b643a39b8 -
Branch / Tag:
refs/tags/sdk-langchain-v0.1.0 - Owner: https://github.com/cocoonstack
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@14091ca821c4d0d0ef94fcf17711514b643a39b8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cocoonstack_sandbox_langchain-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cocoonstack_sandbox_langchain-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87a70e5c601e4b2e26f14f3b2baa721ba9cb71c3cdd99e515f6ee2fe3b3a3c04
|
|
| MD5 |
a6c5497a53c637cc60be1ccba5d5d818
|
|
| BLAKE2b-256 |
6b900b8f388ed8e989d364252725356f79fa1ef405ea5cf9d4171ddeb82e1f75
|
Provenance
The following attestation bundles were made for cocoonstack_sandbox_langchain-0.1.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on cocoonstack/sandbox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cocoonstack_sandbox_langchain-0.1.0-py3-none-any.whl -
Subject digest:
87a70e5c601e4b2e26f14f3b2baa721ba9cb71c3cdd99e515f6ee2fe3b3a3c04 - Sigstore transparency entry: 2096156158
- Sigstore integration time:
-
Permalink:
cocoonstack/sandbox@14091ca821c4d0d0ef94fcf17711514b643a39b8 -
Branch / Tag:
refs/tags/sdk-langchain-v0.1.0 - Owner: https://github.com/cocoonstack
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@14091ca821c4d0d0ef94fcf17711514b643a39b8 -
Trigger Event:
push
-
Statement type: