tools

package
v0.0.0-...-9a0c461 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context, tool llmcomposer.Tool, input string) (string, error)

Types

type Tool

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

func AppendFile

func AppendFile(store llmcomposer.FileStore) *Tool

func Calculator

func Calculator() *Tool

func ExecuteBash

func ExecuteBash(workingDir string) *Tool

ExecuteBash is a tool that executes external commands in a Unix-based system. TODO: Add support for Windows.

func New

func New(name, description string, args []string, fn ToolFunc) *Tool

func ReadFile

func ReadFile(store llmcomposer.FileStore) *Tool

func WebBrowser

func WebBrowser() *Tool

func WriteFile

func WriteFile(store llmcomposer.FileStore) *Tool

func (*Tool) Args

func (t *Tool) Args() []string

func (*Tool) Call

func (t *Tool) Call(ctx context.Context, args map[string]string) (string, error)

func (*Tool) Description

func (t *Tool) Description() string

func (*Tool) Name

func (t *Tool) Name() string

type ToolFunc

type ToolFunc func(ctx context.Context, args map[string]string) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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