跳转到内容

CLI 与 YAML

agents:
- name: researcher
system_prompt: "Collect factual notes with source links."
workflow:
type: sequential

密钥、长私有笔记和一次性实验不要放进可复用 YAML。配置文件控制行为,所以要像代码一样复核。

Workflow 是应用逻辑时用 Python。希望不改代码也能重复运行时,用 YAML 或 CLI 配置。

需求优先选择
原型逻辑Python 脚本
运行已知 workflowCLI 或 YAML
存放密钥环境变量或 secrets manager
复核行为靠近项目的版本化 YAML
agents:
- name: researcher
system_prompt: "Collect factual notes with source links."
workflow:
type: sequential