auto-reply

command
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 9 Imported by: 0

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 文本应答

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL