bash

package
v0.83.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultShellPath          = "/bin/bash"
	DefaultTimeout            = 30 * time.Second
	DefaultModelOutputLimit   = 1600
	DefaultDisplayOutputLimit = 6000
)

Variables

This section is empty.

Functions

func NewTool

func NewTool(cfg Config) (core.Tool, error)

Types

type Config

type Config struct {
	Root               string
	ShellPath          string
	Timeout            time.Duration
	ModelOutputLimit   int
	DisplayOutputLimit int
	ExtraEnv           map[string]string
	PassthroughEnvKeys []string
}

type Tool

type Tool struct {
	// contains filtered or unexported fields
}

func (*Tool) CanHandle

func (t *Tool) CanHandle(_ context.Context, intent string) bool

func (*Tool) CloneTool

func (t *Tool) CloneTool() core.Tool

func (*Tool) Description

func (t *Tool) Description() string

func (*Tool) Execute

func (t *Tool) Execute(ctx context.Context, params map[string]any) (core.ToolResult, error)

func (*Tool) InputSchema

func (t *Tool) InputSchema() models.InputSchema

func (*Tool) Metadata

func (t *Tool) Metadata() *core.ToolMetadata

func (*Tool) Name

func (t *Tool) Name() string

func (*Tool) Root

func (t *Tool) Root() string

func (*Tool) Validate

func (t *Tool) Validate(params map[string]any) error

Jump to

Keyboard shortcuts

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