delegate
latest
false
Delegate & Cartographer 用户指南
- 概述
- 快速入门
- Delegate
- 信任与合规
- 监管
- 功能
- 制图工具
- Delegate for Testing
- 参考
- 故障排除
- 备份和还原
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
Reference for the Hooks area in Delegate and Cartographer — running a shell command at a specific point in the agent's lifecycle.
A hook runs a shell command at a specific point in the agent's lifecycle. Hooks are managed from Add-ons & Integrations → Hooks, via Add hook.
| 字段 | 描述 |
|---|---|
| 事件类型 | When the hook runs: Session start, User prompt submitted, Before tool, Permission request, Permission resolved, After tool, After tool failure, or Agent stop. |
| 名称 | A short label for the hook (for example, "Block file deletion"). |
| 工具 | Which tool the hook applies to. Defaults to All tools. |
| Shell command | The command to run. Runs via cmd.exe. To deny a tool, exit with code 2 (for example, exit /b 2). |