Documentation
¶
Index ¶
- func ClassifyEffect(args map[string]any) tool.Effect
- func Command(ctx context.Context, command, workingDir string) *exec.Cmd
- func ExecTools(manager *ExecManager, workDir string, elicit *tool.Elicitation, ...) []tool.Tool
- func IsDangerousCommand(command string) bool
- func IsReadOnlyCommand(command string) bool
- func Tools(workDir string, elicit *tool.Elicitation, appr *Approvals) []tool.Tool
- type Approvals
- type ExecManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶ added in v0.9.4
Command builds an *exec.Cmd that runs a script with the same interpreter the shell tool uses on this platform.
func ExecTools ¶ added in v0.10.0
func ExecTools(manager *ExecManager, workDir string, elicit *tool.Elicitation, appr *Approvals) []tool.Tool
func IsDangerousCommand ¶ added in v0.6.2
func IsReadOnlyCommand ¶ added in v0.6.2
Types ¶
type Approvals ¶ added in v0.10.0
type Approvals struct {
// contains filtered or unexported fields
}
func NewApprovals ¶ added in v0.10.0
func NewApprovals() *Approvals
type ExecManager ¶ added in v0.10.0
type ExecManager struct {
// contains filtered or unexported fields
}
func NewExecManager ¶ added in v0.10.0
func NewExecManager() *ExecManager
func (*ExecManager) Close ¶ added in v0.10.0
func (m *ExecManager) Close()
Click to show internal directories.
Click to hide internal directories.