Documentation ¶
Index ¶
- Variables
- func Builtin(name string) (types.Tool, bool)
- func DiscardProgress() (progress chan<- string, closeFunc func())
- 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, _ chan<- string) (string, error)
- func SysAppend(_ context.Context, _ []string, input string, _ chan<- string) (string, error)
- func SysChatCurrent(ctx context.Context, _ []string, _ string, _ chan<- string) (string, error)
- func SysChatFinish(_ context.Context, _ []string, input string, _ chan<- string) (string, error)
- func SysChatHistory(ctx context.Context, _ []string, _ string, _ chan<- string) (string, error)
- func SysContext(ctx context.Context, _ []string, _ string, _ chan<- string) (string, error)
- func SysDownload(_ context.Context, env []string, input string, _ chan<- string) (_ string, err error)
- func SysExec(_ context.Context, env []string, input string, progress chan<- string) (string, error)
- func SysFind(_ context.Context, _ []string, input string, _ chan<- string) (string, error)
- func SysGetenv(_ context.Context, env []string, input string, _ chan<- string) (string, error)
- func SysHTTPGet(_ context.Context, _ []string, input string, _ chan<- string) (_ string, err error)
- func SysHTTPHtml2Text(ctx context.Context, env []string, input string, progress chan<- string) (string, error)
- func SysHTTPPost(ctx context.Context, _ []string, input string, _ chan<- string) (_ string, err error)
- func SysLs(_ context.Context, _ []string, input string, _ chan<- string) (string, error)
- func SysModelProviderCredential(ctx context.Context, _ []string, _ string, _ chan<- string) (string, error)
- func SysRead(_ context.Context, _ []string, input string, _ chan<- string) (string, error)
- func SysRemove(_ context.Context, _ []string, input string, _ chan<- string) (string, error)
- func SysStat(_ context.Context, _ []string, input string, _ chan<- string) (string, error)
- func SysTimeNow(context.Context, []string, string, chan<- string) (string, error)
- func SysWrite(_ context.Context, _ []string, input string, _ chan<- string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var SafeTools = map[string]struct{}{
"sys.abort": {},
"sys.chat.finish": {},
"sys.chat.history": {},
"sys.chat.current": {},
"sys.echo": {},
"sys.prompt": {},
"sys.time.now": {},
"sys.context": {},
"sys.model.provider.credential": {},
}
Functions ¶
func DiscardProgress ¶ added in v0.8.4
func DiscardProgress() (progress chan<- string, closeFunc func())
func GetDefaultModel ¶ added in v0.1.4
func GetDefaultModel() string
func SetDefaultModel ¶ added in v0.1.4
func SetDefaultModel(model string)
func SysChatCurrent ¶ added in v0.9.0
func SysChatFinish ¶ added in v0.6.0
func SysChatHistory ¶ added in v0.7.0
func SysContext ¶ added in v0.8.4
func SysDownload ¶
func SysHTTPGet ¶
func SysHTTPHtml2Text ¶
func SysHTTPPost ¶
func SysModelProviderCredential ¶ added in v0.9.5
func SysTimeNow ¶ added in v0.7.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.