Skip to main content

Capsule sandbox integration for CrewAI

Project description

crewAI-capsule

CrewAI integration for Capsule — crewai-capsule gives CrewAI agents the ability to safely execute tasks in an isolated WebAssembly sandbox. No configuration or network request is necessary to execute the sandboxed tasks.

Installation

pip install crewai-capsule

Usage

The package provides tools for executing code inside an isolated environment.

import asyncio
from crewai_capsule import CapsulePythonREPLTool, CapsuleJSREPLTool

# Python Example
python_tool = CapsulePythonREPLTool()
result = python_tool.run("1 + 1")
print(result) # "2"

# JavaScript Example
js_tool = CapsuleJSREPLTool()
result = asyncio.run(js_tool.arun("1 + 2"))
print(result) # "3"

More information

Visit Capsule repository for more information.

License

MIT License

Project details


Download files

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

Source Distribution

crewai_capsule-0.1.0.tar.gz (20.4 MB view details)

Uploaded Source

Built Distribution

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

crewai_capsule-0.1.0-py2.py3-none-any.whl (20.5 MB view details)

Uploaded Python 2Python 3

File details

Details for the file crewai_capsule-0.1.0.tar.gz.

File metadata

  • Download URL: crewai_capsule-0.1.0.tar.gz
  • Upload date:
  • Size: 20.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for crewai_capsule-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a64ade8e07a9cbd4be91bc5bc7ae590853dd5382945bed40cb345dda111ee7b2
MD5 928003b262fa775648bd573930c85d98
BLAKE2b-256 941ea877141cb8dd0abf97b01fef821251abb13ed73d755f4fd5cc3aaa84f20f

See more details on using hashes here.

File details

Details for the file crewai_capsule-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for crewai_capsule-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 26edd65f10b7b52804e4669f69ef8a1b4b97951273d10d3adad5d465ed838748
MD5 07ad3e27c19d684a214d1bd7efbceda7
BLAKE2b-256 6555c368cdafcdf5b222ab8a85eaa96884958777f082bfd0dd739d44ddb31fa7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page