builtin

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultModel       = openai.DefaultModel
	DefaultVisionModel = openai.DefaultVisionModel
)

Functions

func Builtin

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

func ListTools

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

func SetDefaults

func SetDefaults(tool types.Tool) types.Tool

func SysAbort

func SysAbort(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 SysProgram

func SysProgram() *types.Program

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 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