Documentation ¶
Index ¶
- 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(ctx context.Context, env []string, input string) (string, error)
- func SysAppend(ctx context.Context, env []string, input string) (string, error)
- func SysChatFinish(ctx context.Context, env []string, input string) (string, error)
- func SysDownload(ctx context.Context, env []string, input string) (_ string, err error)
- func SysExec(ctx context.Context, env []string, input string) (string, error)
- func SysFind(ctx context.Context, env []string, input string) (string, error)
- func SysGetenv(ctx context.Context, env []string, input string) (string, error)
- func SysHTTPGet(ctx context.Context, env []string, input string) (_ string, err error)
- func SysHTTPHtml2Text(ctx context.Context, env []string, input string) (string, error)
- func SysHTTPPost(ctx context.Context, env []string, input string) (_ string, err error)
- func SysLs(_ context.Context, _ []string, input string) (string, error)
- func SysProgram() *types.Program
- func SysPrompt(_ context.Context, _ []string, input string) (_ string, err error)
- func SysRead(ctx context.Context, env []string, input string) (string, error)
- func SysRemove(ctx context.Context, env []string, input string) (string, error)
- func SysStat(ctx context.Context, env []string, input string) (string, error)
- func SysWrite(ctx context.Context, env []string, input string) (string, error)
- type ErrChatFinish
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 SysDownload ¶
func SysHTTPGet ¶
func SysHTTPHtml2Text ¶
func SysHTTPPost ¶
func SysProgram ¶
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.