Documentation ¶
Index ¶
- Variables
- func Builtin(name string) (types.Tool, bool)
- func GetDefaultModel() string
- func ListTools() (result []types.Tool)
- func SetDefaultModel(model string)
- func SetDefaults(tool types.Tool) types.Tool
- func SysAbort(_ context.Context, _ []string, input string) (string, error)
- func SysAppend(_ context.Context, _ []string, input string) (string, error)
- func SysChatFinish(_ context.Context, _ []string, input string) (string, error)
- func SysChatHistory(ctx context.Context, _ []string, _ string) (string, error)
- func SysDownload(_ context.Context, env []string, input string) (_ string, err error)
- func SysExec(_ context.Context, env []string, input string) (string, error)
- func SysFind(_ context.Context, _ []string, input string) (string, error)
- func SysGetenv(_ context.Context, env []string, input string) (string, error)
- func SysHTTPGet(_ context.Context, _ []string, input string) (_ string, err error)
- func SysHTTPHtml2Text(ctx context.Context, env []string, input string) (string, error)
- func SysHTTPPost(ctx context.Context, _ []string, input string) (_ string, err error)
- func SysLs(_ context.Context, _ []string, input string) (string, error)
- func SysProgram() *types.Program
- func SysRead(_ context.Context, _ []string, input string) (string, error)
- func SysRemove(_ context.Context, _ []string, input string) (string, error)
- func SysStat(_ context.Context, _ []string, input string) (string, error)
- func SysTimeNow(context.Context, []string, string) (string, error)
- func SysWrite(_ context.Context, _ []string, input string) (string, error)
- type ErrChatFinish
Constants ¶
This section is empty.
Variables ¶
View Source
var SafeTools = map[string]struct{}{
"sys.abort": {},
"sys.chat.finish": {},
"sys.chat.history": {},
"sys.echo": {},
"sys.prompt": {},
"sys.time.now": {},
}
Functions ¶
func GetDefaultModel ¶ added in v0.1.4
func GetDefaultModel() string
func SetDefaultModel ¶ added in v0.1.4
func SetDefaultModel(model string)
func SysChatFinish ¶ added in v0.6.0
func SysChatHistory ¶ added in v0.7.0
func SysDownload ¶
func SysHTTPGet ¶
func SysHTTPHtml2Text ¶
func SysHTTPPost ¶
func SysProgram ¶
func SysTimeNow ¶ added in v0.7.0
Types ¶
type ErrChatFinish ¶ added in v0.6.0
type ErrChatFinish struct {
Message string
}
func (*ErrChatFinish) Error ¶ added in v0.6.0
func (e *ErrChatFinish) Error() string
Click to show internal directories.
Click to hide internal directories.