BashTool 增强的Bash命令执行工具 支持持久化shell会话功能
| 15 | // BashTool 增强的Bash命令执行工具 |
| 16 | // 支持持久化shell会话功能 |
| 17 | type BashTool struct { |
| 18 | dangerousPatterns []*regexp.Regexp |
| 19 | defaultTimeout time.Duration |
| 20 | } |
| 21 | |
| 22 | // NewBashTool 创建Bash执行工具 |
| 23 | func NewBashTool(config map[string]any) (tools.Tool, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected