CLI 与 YAML
CLI 与 YAML
Section titled “CLI 与 YAML”YAML 用于复现
Section titled “YAML 用于复现”agents: - name: researcher system_prompt: "Collect factual notes with source links."workflow: type: sequential密钥、长私有笔记和一次性实验不要放进可复用 YAML。配置文件控制行为,所以要像代码一样复核。
交互工作和可复现工作不同
Section titled “交互工作和可复现工作不同”Workflow 是应用逻辑时用 Python。希望不改代码也能重复运行时,用 YAML 或 CLI 配置。
| 需求 | 优先选择 |
|---|---|
| 原型逻辑 | Python 脚本 |
| 运行已知 workflow | CLI 或 YAML |
| 存放密钥 | 环境变量或 secrets manager |
| 复核行为 | 靠近项目的版本化 YAML |
agents: - name: researcher system_prompt: "Collect factual notes with source links."workflow: type: sequential