Skip to content

[Feature Request] Add package installation supports into code execution sandboxes  #2466

@lightaime

Description

@lightaime

Required prerequisites

Motivation

To give agents more general capability, we want agents to be able to install packages by themselves:

Language-specific Package Managers:

  • Python: pip, uv
  • Node.js (JavaScript/TypeScript: npm or yarn / pnpm
  • Ruby: gem
  • Java: Maven, Gradle
  • Rust: cargo
  • Go: go get, go install
  • R: Rscript -e "install.packages('<package>')"
  • PHP: composer
  • .NET (C#): NuGet

System Package Managers:

  • Linux (Debian-based): apt
  • macOS: brew
  • Windows: winget, choco

Agent Features to Include

  • Check Before Install: Verify if the package is already installed.
  • Version Management: Install specific versions if required.
  • Error Handling: Retry failed installs or suggest alternatives.
  • Sandbox Mode: Test installs in isolated containers.

Solution

No response

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

New FeatureP0Task with high level priority

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions