bailian-managed-agent
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBailian managed agent IaC (bl managed-agent
)
bl managed-agent百炼托管Agent IaC(bl managed-agent
)
bl managed-agentCRITICAL — Before executing, MUST read the shared protocol in : Version & updates (pre-flight checklist) and CLI errors: report an issue. Command details are authoritative in and — do not guess flags. If that protocol file is missing, stop and run ; do not guess auth/consent.
../bailian-protocol/SKILL.mdreference/managed-agent.mdbl managed-agent --helpnpx skills add modelstudioai/cli --all -g重要提示 — 执行前必须阅读中的共享协议:版本与更新(执行前检查清单)以及CLI错误:提交问题。命令详情以和为准——请勿猜测参数。若该协议文件缺失,请停止操作并执行;请勿猜测认证/授权方式。
../bailian-protocol/SKILL.mdreference/managed-agent.mdbl managed-agent --helpnpx skills add modelstudioai/cli --all -gSafety guardrail (the most important rule)
安全防护规则(最重要的规则)
applydestroy--yes- Always run first and show the diff to the user.
bl managed-agent plan - Only after explicit user confirmation, retry /
applywithdestroy.--yes - Never add on your own initiative before the user has confirmed.
--yes
applydestroy--yes- 始终先执行并向用户展示变更差异。
bl managed-agent plan - 仅在用户明确确认后,重新执行带参数的
--yes/apply。destroy - 在用户确认前,切勿主动添加参数。
--yes
IaC lifecycle
IaC生命周期
1. Init bl managed-agent init # scaffold agents.yaml
2. Validate bl managed-agent validate # offline, no network calls
3. Preview bl managed-agent plan # show the pending change diff
4. Apply bl managed-agent apply --yes # only after user confirmation
5. Destroy bl managed-agent destroy --yes # only after user confirmation1. 初始化 bl managed-agent init # 生成agents.yaml脚手架
2. 校验 bl managed-agent validate # 离线操作,无需网络调用
3. 预览 bl managed-agent plan # 展示待执行的变更差异
4. 应用变更 bl managed-agent apply --yes # 仅在用户确认后执行
5. 销毁资源 bl managed-agent destroy --yes # 仅在用户确认后执行Session interaction (chat with a deployed managed agent)
会话交互(与已部署的托管Agent对话)
| Intent | Command |
|---|---|
| Create + send + stream in one step | |
| Send a message to an existing session | |
| Create / inspect / list sessions | |
| List session event history | |
| Delete a session | |
| 意图 | 命令 |
|---|---|
| 一步完成创建、发送消息与流式响应 | |
| 向现有会话发送消息 | |
| 创建/查看/列出会话 | |
| 列出会话事件历史 | |
| 删除会话 | |
Local state management
本地状态管理
| Intent | Command |
|---|---|
| Inspect tracked resources | |
| Adopt an existing remote resource to state | |
| Untrack only (do not destroy remotely) | |
- Always make the difference clear to the user: only edits the local state file, while
state rmdeletes the remote resource.destroy
Flags, usage, and examples: see or — do not guess flags.
reference/bl <command> --help| 意图 | 命令 |
|---|---|
| 查看已跟踪的资源 | |
| 将现有远端资源纳入本地状态跟踪 | |
| 取消跟踪(不销毁远端资源) | |
- 务必向用户明确区分:仅编辑本地状态文件,而
state rm会删除远端资源。destroy
参数、用法及示例:请查看或——请勿猜测参数。
reference/bl <command> --helpCommon hand-offs
常见转接说明
软 hand-off(按 skill 名;已安装则 Read,否则 / 提示 ):
--helpnpx skills add modelstudioai/cli --all -g- Call an already published Bailian app/assistant → , or skill
bailian-app-call(bailian-cli/bl app list; fallback:call).bl app --help - Choosing the model referenced in agents.yaml → .
bailian-model-recommend - Deployment quota / billing questions → skill (fallback:
bailian-cli/bl quota).bl usage --help
软转接(按Skill名称;若已安装则读取相关内容,否则执行或提示用户执行):
--helpnpx skills add modelstudioai/cli --all -g- 调用已发布的百炼应用/智能体 → 使用,或Skill
bailian-app-call(bailian-cli/bl app list;备选方案:call)。bl app --help - 选择agents.yaml中引用的模型 → 使用。
bailian-model-recommend - 部署配额/计费相关问题 → 使用Skill (备选方案:
bailian-cli/bl quota)。bl usage --help
references
参考资料
- bailian-protocol — shared protocol (install via )
--all -g - reference/ — command details
- bailian-protocol — 共享协议(通过安装)
--all -g - reference/ — 命令详情