Skip to main content

OpenAI Agents SDK sandbox provider backed by cocoon microVMs

Project description

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.0.tar.gz (5.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_openai-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for cocoonstack_sandbox_openai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ab542c198be763c7397afb7e6d2df4feca0d2b5a010739dbc4b878c9fb3e680d
MD5 1c4a31b748c4a40d1ecf5c4e73f402af
BLAKE2b-256 92c5920982ada65e7c026904241158de743f51fcf7866c383a0f430a3c3a13a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for cocoonstack_sandbox_openai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 decaba5d85dd2d6eb83b6ceb8b879089cc1a30b875e18817afcb81b1d7bae328
MD5 408731faa80f6295b79e2c36dc24fe9a
BLAKE2b-256 37ce91ce5d58bcbcdef41b9279ae93f6fc39f38793203d899fc390d5a5d5e22c

See more details on using hashes here.

Provenance

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