builtin

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Builtin

func Builtin(name string) (types.Tool, bool)

func GetDefaultModel added in v0.1.4

func GetDefaultModel() string

func ListTools

func ListTools() (result []types.Tool)

func SetDefaultModel added in v0.1.4

func SetDefaultModel(model string)

func SetDefaults

func SetDefaults(tool types.Tool) types.Tool

func SysAbort

func SysAbort(ctx context.Context, env []string, input string) (string, error)

func SysAppend added in v0.1.4

func SysAppend(ctx context.Context, env []string, input string) (string, error)

func SysDownload

func SysDownload(ctx context.Context, env []string, input string) (_ string, err error)

func SysExec

func SysExec(ctx context.Context, env []string, input string) (string, error)

func SysFind

func SysFind(ctx context.Context, env []string, input string) (string, error)

func SysGetenv

func SysGetenv(ctx context.Context, env []string, input string) (string, error)

func SysHTTPGet

func SysHTTPGet(ctx context.Context, env []string, input string) (_ string, err error)

func SysHTTPHtml2Text

func SysHTTPHtml2Text(ctx context.Context, env []string, input string) (string, error)

func SysHTTPPost

func SysHTTPPost(ctx context.Context, env []string, input string) (_ string, err error)

func SysLs added in v0.4.2

func SysLs(_ context.Context, _ []string, input string) (string, error)

func SysProgram

func SysProgram() *types.Program

func SysPrompt added in v0.5.0

func SysPrompt(ctx context.Context, _ []string, input string) (_ string, err error)

func SysRead

func SysRead(ctx context.Context, env []string, input string) (string, error)

func SysRemove

func SysRemove(ctx context.Context, env []string, input string) (string, error)

func SysStat added in v0.1.4

func SysStat(ctx context.Context, env []string, input string) (string, error)

func SysWrite

func SysWrite(ctx context.Context, env []string, input string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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