这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@aadit-juneja
Copy link
Contributor

@aadit-juneja aadit-juneja commented Sep 11, 2025

Description

This PR adds support for Modal Sandboxes into the VibeKit project. It exposes a Modal Sandbox provider option to users via the generalizable SandboxProvider class.

I created aModalSandboxProvider class and a ModalSandboxInstance implementation, with a new library and SDK folder setup in /packages/modal.

Due to Modal sandboxes not requiring any explicit program setups in scripts, and instead uses a CLI setup, I've included comments in both the code and docs that point users to conduct this setup. Note one uses the Modal Python SDK to do this profile setup (which is done via environment variables), but uses the Modal Javascript SDK in the backend of VibeKit.

Dependency Updates

  • Added modal in package.json for Modal Sandbox integration.

Codebase Updates

  • Added packages/modal folder containing implementation of ModalSandboxProvider and ModalSandboxInstance in src/index.ts.
  • Added Modal to packages/sdk/src/constants/providers.ts
  • Added ModalConfig types to packages/sdk/src/index.ts and packages/sdk/src/types.ts
  • Added Modal example to packages/sdk/README.md
  • Added Modal to docs in docs/supported-sandboxes/modal.mdx and docs/api-reference/configuration.mdx
  • Added Modal example to LLM.md
  • Added testing script to test/modal.test.ts

Checklist

  • I tested my changes
  • I reviewed my own code

@vercel
Copy link

vercel bot commented Sep 11, 2025

@aadit-juneja is attempting to deploy a commit to the Superagent Team on Vercel.

A member of the Team first needs to authorize it.

@homanp
Copy link
Collaborator

homanp commented Sep 11, 2025

🙏

@homanp homanp changed the title Feature/modal sandboxes feat: add support for modal sandboxes Sep 11, 2025
@homanp
Copy link
Collaborator

homanp commented Sep 11, 2025

@aadit-juneja looks great, will add support for streaming to it as well and then merge

@homanp homanp self-assigned this Sep 11, 2025
@homanp homanp added the sdk label Sep 11, 2025
@homanp homanp linked an issue Sep 11, 2025 that may be closed by this pull request
@homanp homanp merged commit 86200fc into superagent-ai:main Sep 11, 2025
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support Modal.com sandbox

2 participants