Documentation
¶
Index ¶
- type FetchResult
- type FetchTool
- func (t *FetchTool) Instructions() string
- func (t *FetchTool) SetElicitationHandler(handler tools.ElicitationHandler)
- func (t *FetchTool) SetOAuthSuccessHandler(handler func())
- func (t *FetchTool) Start(context.Context) error
- func (t *FetchTool) Stop() error
- func (t *FetchTool) Tools(context.Context) ([]tools.Tool, error)
- type FetchToolOption
- type FileInfo
- type FileSystemOpt
- type FilesystemTool
- func (t *FilesystemTool) Instructions() string
- func (t *FilesystemTool) SetElicitationHandler(handler tools.ElicitationHandler)
- func (t *FilesystemTool) SetOAuthSuccessHandler(handler func())
- func (t *FilesystemTool) Start(context.Context) error
- func (t *FilesystemTool) Stop() error
- func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error)
- type MemoryTool
- func (t *MemoryTool) Instructions() string
- func (t *MemoryTool) SetElicitationHandler(handler tools.ElicitationHandler)
- func (t *MemoryTool) SetOAuthSuccessHandler(handler func())
- func (t *MemoryTool) Start(context.Context) error
- func (t *MemoryTool) Stop() error
- func (t *MemoryTool) Tools(context.Context) ([]tools.Tool, error)
- type PostEditConfig
- type ScriptShellTool
- func (t *ScriptShellTool) Instructions() string
- func (t *ScriptShellTool) SetElicitationHandler(handler tools.ElicitationHandler)
- func (t *ScriptShellTool) SetOAuthSuccessHandler(handler func())
- func (t *ScriptShellTool) Start(context.Context) error
- func (t *ScriptShellTool) Stop() error
- func (t *ScriptShellTool) Tools(context.Context) ([]tools.Tool, error)
- type SearchFilesArgs
- type ShellTool
- func (t *ShellTool) Instructions() string
- func (t *ShellTool) SetElicitationHandler(handler tools.ElicitationHandler)
- func (t *ShellTool) SetOAuthSuccessHandler(handler func())
- func (t *ShellTool) Start(context.Context) error
- func (t *ShellTool) Stop() error
- func (t *ShellTool) Tools(context.Context) ([]tools.Tool, error)
- type ThinkTool
- func (t *ThinkTool) Instructions() string
- func (t *ThinkTool) SetElicitationHandler(handler tools.ElicitationHandler)
- func (t *ThinkTool) SetOAuthSuccessHandler(handler func())
- func (t *ThinkTool) Start(context.Context) error
- func (t *ThinkTool) Stop() error
- func (t *ThinkTool) Tools(context.Context) ([]tools.Tool, error)
- type Todo
- type TodoTool
- func (t *TodoTool) Instructions() string
- func (t *TodoTool) SetElicitationHandler(handler tools.ElicitationHandler)
- func (t *TodoTool) SetOAuthSuccessHandler(handler func())
- func (t *TodoTool) Start(context.Context) error
- func (t *TodoTool) Stop() error
- func (t *TodoTool) Tools(context.Context) ([]tools.Tool, error)
- type TransferTaskTool
- func (t *TransferTaskTool) Instructions() string
- func (t *TransferTaskTool) SetElicitationHandler(handler tools.ElicitationHandler)
- func (t *TransferTaskTool) SetOAuthSuccessHandler(handler func())
- func (t *TransferTaskTool) Start(context.Context) error
- func (t *TransferTaskTool) Stop() error
- func (t *TransferTaskTool) Tools(context.Context) ([]tools.Tool, error)
- type TreeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchResult ¶ added in v1.6.1
type FetchTool ¶ added in v1.6.1
type FetchTool struct {
// contains filtered or unexported fields
}
func NewFetchTool ¶ added in v1.6.1
func NewFetchTool(options ...FetchToolOption) *FetchTool
func (*FetchTool) Instructions ¶ added in v1.6.1
func (*FetchTool) SetElicitationHandler ¶ added in v1.7.0
func (t *FetchTool) SetElicitationHandler(handler tools.ElicitationHandler)
func (*FetchTool) SetOAuthSuccessHandler ¶ added in v1.7.0
func (t *FetchTool) SetOAuthSuccessHandler(handler func())
type FetchToolOption ¶ added in v1.6.1
type FetchToolOption func(*FetchTool)
func WithTimeout ¶ added in v1.6.1
func WithTimeout(timeout time.Duration) FetchToolOption
type FileSystemOpt ¶
type FileSystemOpt func(*FilesystemTool)
func WithAllowedTools ¶
func WithAllowedTools(allowedTools []string) FileSystemOpt
func WithPostEditCommands ¶ added in v1.3.1
func WithPostEditCommands(postEditCommands []PostEditConfig) FileSystemOpt
type FilesystemTool ¶
type FilesystemTool struct {
// contains filtered or unexported fields
}
func NewFilesystemTool ¶
func NewFilesystemTool(allowedDirectories []string, opts ...FileSystemOpt) *FilesystemTool
func (*FilesystemTool) Instructions ¶
func (t *FilesystemTool) Instructions() string
func (*FilesystemTool) SetElicitationHandler ¶ added in v1.7.0
func (t *FilesystemTool) SetElicitationHandler(handler tools.ElicitationHandler)
func (*FilesystemTool) SetOAuthSuccessHandler ¶ added in v1.7.0
func (t *FilesystemTool) SetOAuthSuccessHandler(handler func())
func (*FilesystemTool) Stop ¶
func (t *FilesystemTool) Stop() error
type MemoryTool ¶
type MemoryTool struct {
// contains filtered or unexported fields
}
func NewMemoryTool ¶
func NewMemoryTool(manager memorymanager.Manager) *MemoryTool
func (*MemoryTool) Instructions ¶
func (t *MemoryTool) Instructions() string
func (*MemoryTool) SetElicitationHandler ¶ added in v1.7.0
func (t *MemoryTool) SetElicitationHandler(handler tools.ElicitationHandler)
func (*MemoryTool) SetOAuthSuccessHandler ¶ added in v1.7.0
func (t *MemoryTool) SetOAuthSuccessHandler(handler func())
func (*MemoryTool) Stop ¶
func (t *MemoryTool) Stop() error
type PostEditConfig ¶ added in v1.3.1
type PostEditConfig struct { Path string // File path pattern (glob-style) Cmd string // Command to execute (with $path placeholder) }
PostEditConfig represents a post-edit command configuration
type ScriptShellTool ¶
type ScriptShellTool struct {
// contains filtered or unexported fields
}
func NewScriptShellTool ¶
func NewScriptShellTool(shellTools map[string]latest.ScriptShellToolConfig, env []string) *ScriptShellTool
func (*ScriptShellTool) Instructions ¶
func (t *ScriptShellTool) Instructions() string
func (*ScriptShellTool) SetElicitationHandler ¶ added in v1.7.0
func (t *ScriptShellTool) SetElicitationHandler(handler tools.ElicitationHandler)
func (*ScriptShellTool) SetOAuthSuccessHandler ¶ added in v1.7.0
func (t *ScriptShellTool) SetOAuthSuccessHandler(handler func())
func (*ScriptShellTool) Stop ¶
func (t *ScriptShellTool) Stop() error
type SearchFilesArgs ¶ added in v1.0.1
type ShellTool ¶
type ShellTool struct {
// contains filtered or unexported fields
}
func NewShellTool ¶
func (*ShellTool) Instructions ¶
func (*ShellTool) SetElicitationHandler ¶ added in v1.7.0
func (t *ShellTool) SetElicitationHandler(handler tools.ElicitationHandler)
func (*ShellTool) SetOAuthSuccessHandler ¶ added in v1.7.0
func (t *ShellTool) SetOAuthSuccessHandler(handler func())
type ThinkTool ¶
type ThinkTool struct {
// contains filtered or unexported fields
}
func NewThinkTool ¶
func NewThinkTool() *ThinkTool
func (*ThinkTool) Instructions ¶
func (*ThinkTool) SetElicitationHandler ¶ added in v1.7.0
func (t *ThinkTool) SetElicitationHandler(handler tools.ElicitationHandler)
func (*ThinkTool) SetOAuthSuccessHandler ¶ added in v1.7.0
func (t *ThinkTool) SetOAuthSuccessHandler(handler func())
type TodoTool ¶
type TodoTool struct {
// contains filtered or unexported fields
}
func NewTodoTool ¶
func NewTodoTool() *TodoTool
func (*TodoTool) Instructions ¶
func (*TodoTool) SetElicitationHandler ¶ added in v1.7.0
func (t *TodoTool) SetElicitationHandler(handler tools.ElicitationHandler)
func (*TodoTool) SetOAuthSuccessHandler ¶ added in v1.7.0
func (t *TodoTool) SetOAuthSuccessHandler(handler func())
type TransferTaskTool ¶
type TransferTaskTool struct {
// contains filtered or unexported fields
}
func NewTransferTaskTool ¶
func NewTransferTaskTool() *TransferTaskTool
func (*TransferTaskTool) Instructions ¶
func (t *TransferTaskTool) Instructions() string
func (*TransferTaskTool) SetElicitationHandler ¶ added in v1.7.0
func (t *TransferTaskTool) SetElicitationHandler(handler tools.ElicitationHandler)
func (*TransferTaskTool) SetOAuthSuccessHandler ¶ added in v1.7.0
func (t *TransferTaskTool) SetOAuthSuccessHandler(handler func())
func (*TransferTaskTool) Stop ¶
func (t *TransferTaskTool) Stop() error
Click to show internal directories.
Click to hide internal directories.