[FEATURE] Support offline custom dependencies for Code Interpreter sessions

オープン
#657 コメント 0 件 リアクション 6 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

Code Interpreter のセッション作成パスと SDK の install_packages() ヘルパーから始め、filesystemConfigurations がセッションにどのように渡されるかを比較します。アプリケーションでオフラインの依存関係設定を宣言でき、セッションが公開パッケージインデックスにアクセスせずにそれを初期化し、エージェントコードの実行前に初期化の失敗が通知されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Is your feature request related to a problem? Please describe.

AgentCore Code Interpreter provides a fixed set of pre-installed libraries. The
SDK's install_packages() helper runs a normal pip install, which requires
access to PyPI or another package index.

Code Interpreter sessions running in an isolated VPC without NAT cannot use
this mechanism. Enabling public internet access solely to install dependencies
increases cost and weakens the sandbox's network isolation.

Code Interpreter supports mounting S3 Files and EFS through
filesystemConfigurations, but there is no first-class way to declare an
offline dependency bundle or initialization step. Applications must currently:

  1. Mount or upload a wheelhouse.
  2. Execute pip install --no-index manually after every session starts.
  3. Configure sys.path and PYTHONPATH separately for executeCode and
    executeCommand.
  4. Detect initialization failures themselves before allowing agent code to run.

This creates duplicated bootstrap logic and makes session readiness ambiguous.

Describe the solution you'd like

Add first-class support for application-defined, offline dependencies when
creating a Code Interpreter or starting a session.

One possible API shape would be:

client.start(
    identifier=interpreter_id,
    filesystem_configurations=[dependency_mount],
    dependency_configuration={
        "python": {
            "requirementsPath": "/mnt/dependencies/requirements.txt",
            "wheelhousePath": "/mnt/dependencies/wheels",
            "offline": True,
        }
    },
)
主要言語
Python
スター
786
フォーク
163
平均マージ
4時間
マージ済み PR(30日)
22

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/bedrock-agentcore-sdk-python のほかの issue

aws/bedrock-agentcore-sdk-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。