CLI 创建 BigQuery 数据智能体

uv run cortex-create-ca-agents 会从已部署的 Google Cloud Cortex Framework 数据产品中预配和同步 BigQuery 对话式分析数据智能体。

Synopsis

uv run cortex-create-ca-agents [-h] \
    [-c CONFIG_PATH | --config CONFIG_PATH] \
    [--enable-apis] [--dry-run] [--disable-telemetry]

替换以下内容:

  • CONFIG_PATH:全局配置文件的路径,例如:config/config.yaml。

选项

下表介绍了 uv run cortex-create-ca-agents 的命令行选项:

标志 说明 默认
-h, --help 显示帮助消息并退出。 无
-c, --config CONFIG_PATH 包含已部署的 data.modules.products 和 conversationalAnalytics 配置的全局 config.yaml 文件的路径。 config/config.yaml
--enable-apis 在 buildEnvironment.buildProjectId 上自动启用缺少的必需 Google Cloud API(bigquery.googleapis.com、geminidataanalytics.googleapis.com 和 cloudaicompanion.googleapis.com),而无需提示。它与 --dry-run 相互排斥。 false
--dry-run 运行只读预检(所需 API、目标对话式分析位置、引用的 BigQuery 数据集和表,以及黄金查询的零成本试运行验证)、构建智能体载荷,并报告每个智能体的同步状态,而无需在 Google Cloud中创建或更新数据智能体。它与 --enable-apis 相互排斥。在--dry-run期间,遥测事件日志记录会被抑制。 false
--disable-telemetry 在执行期间暂时停用遥测事件日志记录。设置 --dry-run 后,系统也会自动抑制遥测。如需了解详情,请参阅 Cortex Framework 遥测。 false

示例

运行只读预检并预览同步状态,而无需修改 Google Cloud 资源:

export CORTEX_CONFIG_FILE=config/config.yaml

uv run cortex-create-ca-agents --config $CORTEX_CONFIG_FILE --dry-run

预配和同步在 config/config.yaml 中定义的已启用对话式分析数据智能体:

export CORTEX_CONFIG_FILE=config/config.yaml

uv run cortex-create-ca-agents --config $CORTEX_CONFIG_FILE

后续步骤