MCPcopy Create free account
hub / github.com/astercloud/aster / BashTool

Struct BashTool

pkg/tools/builtin/bash.go:17–20  ·  view source on GitHub ↗

BashTool 增强的Bash命令执行工具 支持持久化shell会话功能

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected