Skip to main content

OpenAI Agents SDK sandbox provider backed by cocoon microVMs

Project description

cocoonstack-sandbox-openai

pip install cocoonstack-sandbox-openai

OpenAI Agents SDK sandbox provider backed by cocoon microVMs: implements the SDK's BaseSandboxClient/BaseSandboxSession pair over the sync cocoonstack-sandbox SDK, bridged with asyncio.to_thread.

from cocoonsandbox_openai import CocoonSandboxClient, CocoonSandboxClientOptions

options = CocoonSandboxClientOptions(addr="10.0.0.5:7777", api_token="...")
session = await CocoonSandboxClient().create(options=options)

One session is one claimed sandbox; delete releases it, resume reattaches from serialized state (id + token). Exec maps to streaming run, workspace persist/hydrate to tar pull/push, exposed ports to local port proxies. Requires Python >= 3.10 (the openai-agents floor).

Full reference: https://cocoonstack.github.io/sandbox/openai-adapter

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

cocoonstack_sandbox_openai-0.1.1.tar.gz (9.4 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_openai-0.1.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for cocoonstack_sandbox_openai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 80f0a7497db7c1354483ae414ff9cffa86dfebcc91a378e155cf223045f30665
MD5 eb7ae6963e07c423b0b92d2f2ad0c1b9
BLAKE2b-256 92a5e412feac79b7b457877137f1dde2783f5aefbcdc550a339b1147b1327c87

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cocoonstack_sandbox_openai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 80f5fc22ea238ab0f6158ce68578bce9ebf2fcbf1ce0b599bef99a9db02e62d7
MD5 cd346850afecebf088262751023b0a26
BLAKE2b-256 6d5c1e4adaa7d6bd868ef313ecedae993ae697d4e9cbefa53a9d95bd35f885a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for cocoonstack_sandbox_openai-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.

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