对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。

agentengine 构建

在平台上包并构建代理镜像。

从当前目录创建源存档,上传它,并 trigger 一个 CodeBuild 构建以生成 ECR 镜像。

该命令需要一个本地代理目录,因为它会上传源存档;仅使用 --workspace-id 无法替代它。要重新构建没有本地源的版本,请使用 agentengine build --version <version> --workspace-id <id>。否则,工作区 ID 将来自 agentengine init 写入的 .agentengine/state.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
给本页内容打分