AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。

agentengineをビルドする

プラットフォーム上でエージェントイメージをパッケージ化してビルドします。

現在のディレクトリからソースアーカイブを作成してアップロードし、ECRイメージを生成するCodeBuildのビルドするをtriggerします。

このコマンドはソースアーカイブをアップロードするため、ローカルのエージェントディレクトリが必要です。--workspace-id だけでは代用できません。ローカルソースなしでリリースを再構築するには、agentengine build --version <version> --workspace-id <id> を使用します。それ以外の場合、ワークスペースIDは agentengine init によって書き込まれた .agentengine/状態.json から取得されます。

--upload-build-secrets はオプトインです。エージェント.yamlのartifact_repositories[].secretを同名の環境変数から読み取り、ビルドする前に宣言されたスコープでアップロードします。エージェント.yamlで宣言されていない環境変数は読み取りません。それがない場合は、agentengine secret set <NAME>を使用して認証情報を一度保存します。プロジェクトスコープのシークレットをアップロードするにはPROJECT_OWNERまたはORG_ADMINが必要です。ワークスペーススコープのシークレットにはPROJECT_OWNERまたはAGENT_DEVELOPERが必要です。

export ARTIFACT_REPO_CORPS_PYPI_TOKEN="$(aws codeartifact get-authorization-token ...)"agentengine build --upload-build-secrets
agentengine build [flags]
--all Monorepo: build all workspaces sequentially --base-url string Platform base URL --context string Named context to target (see 'agentengine context list')-h, --help help for build --json Output build result as JSON --label string Human-readable build label (default: git branch@sha12) --no-wait Return immediately after starting the build without polling --org-id string Organization ID --project-id string Project ID --release Mark this build as a release of the version declared in agent.yaml, addressable by 'agentengine deploy --version' --upload-build-secrets Optional: before building, upload each agent.yaml artifact_repositories[].secret from the same-named environment variable-v, --verbose Print every file added to the source archive --version string Always start a new build of the release for this declared agent.yaml version, at its pinned commit and skipping archive upload (mutually exclusive with --workspace/--all) --workspace string Monorepo: build a specific workspace by name (from root agent.yaml) --workspace-id string Workspace ID
--log-file string override log file path --log-level string file log verbosity (error|warn|info|debug) (default "info") --no-log disable file logging-q, --quiet silence stderr below error
このページを評価