generate
Generates minimal stub code for specified Python packages, using symbols referenced from an entry point, to reduce executable size.
Instructions
stubbable パッケージの最小スタブコードを生成します。
analyzer が特定した参照シンボルに基づき、import が通る最小限の ダミーモジュール(クラス定義 + 関数スタブ)を生成します。 ファイルの書き出しは行わず、{パス: コード} の辞書を返します。
Args: entry_point: プロジェクトのエントリーポイントファイルパス package_name: スタブ化するパッケージ名(例: "pandas") python_path: site-packages パス(空の場合は現在の環境を自動検出)
Returns: files: {相対パス: コード内容} の辞書 referenced_symbols: 各モジュールで参照されるシンボル一覧 stub_total_bytes: スタブの合計サイズ
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry_point | Yes | ||
| package_name | Yes | ||
| python_path | No |