Documentation
¶
Overview ¶
Command auto-reply 演示在事件流里自动处理 PermissionAsked / QuestionAsked。 适用场景:无人值守的 agent,需要把工具权限请求与多选问题转成自动应答。
用法:
go run ./examples/auto-reply go run ./examples/auto-reply -prompt "在当前目录创建一个 hello.txt 写入 hi"
策略(演示用,集成方按业务替换):
- 权限:默认 always(永久放行);可用 -perm=once/reject 切换
- 问题:每个问题选第 1 个 option;若问题允许自定义(-custom),用 -answer 文本应答
Click to show internal directories.
Click to hide internal directories.