Documentation
¶
Index ¶
- type AddAllowedDirectoryArgs
- type AddMemoryArgs
- type CreateDirectoryArgs
- type CreateTodoArgs
- type CreateTodosArgs
- type DeleteMemoryArgs
- type DirectoryTreeArgs
- type Edit
- type EditFileArgs
- 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 GetFileInfoArgs
- type ListDirectoryArgs
- 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 MoveFileArgs
- type PostEditConfig
- type ReadFileArgs
- type ReadMultipleFilesArgs
- type RunShellArgs
- 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 SearchFilesContentArgs
- 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 ThinkArgs
- 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 TransferTaskArgs
- 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
- type UpdateTodoArgs
- type WriteFileArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAllowedDirectoryArgs ¶ added in v1.7.1
type AddAllowedDirectoryArgs struct {
Path string `json:"path" jsonschema:"The directory path to add to allowed directories"`
Reason string `json:"reason" jsonschema:"Explanation of why this directory needs to be added"`
Confirmed bool `json:"confirmed,omitempty" jsonschema:"Set to true to confirm that you consent to adding this directory"`
}
type AddMemoryArgs ¶ added in v1.7.1
type AddMemoryArgs struct {
Memory string `json:"memory" jsonschema:"The memory content to store"`
}
type CreateDirectoryArgs ¶ added in v1.7.1
type CreateDirectoryArgs struct {
Path string `json:"path" jsonschema:"The directory path to create"`
}
type CreateTodoArgs ¶ added in v1.7.1
type CreateTodoArgs struct {
Description string `json:"description" jsonschema:"Description of the todo item"`
}
type CreateTodosArgs ¶ added in v1.7.1
type CreateTodosArgs struct {
Todos []Todo `json:"todos" jsonschema:"List of todo items"`
}
type DeleteMemoryArgs ¶ added in v1.7.1
type DeleteMemoryArgs struct {
ID string `json:"id" jsonschema:"The ID of the memory to delete"`
}
type DirectoryTreeArgs ¶ added in v1.7.1
type EditFileArgs ¶ added in v1.7.1
type FetchResult ¶ added in v1.6.0
type FetchTool ¶ added in v1.6.0
type FetchTool struct {
// contains filtered or unexported fields
}
func NewFetchTool ¶ added in v1.6.0
func NewFetchTool(options ...FetchToolOption) *FetchTool
func (*FetchTool) Instructions ¶ added in v1.6.0
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.0
type FetchToolOption func(*FetchTool)
func WithTimeout ¶ added in v1.6.0
func WithTimeout(timeout time.Duration) FetchToolOption
type FileSystemOpt ¶
type FileSystemOpt func(*FilesystemTool)
func WithAllowedTools ¶
func WithAllowedTools(allowedTools []string) FileSystemOpt
func WithPostEditCommands ¶ added in v1.2.0
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 GetFileInfoArgs ¶ added in v1.7.1
type GetFileInfoArgs struct {
Path string `json:"path" jsonschema:"The file or directory path to inspect"`
}
type ListDirectoryArgs ¶ added in v1.7.1
type ListDirectoryArgs struct {
Path string `json:"path" jsonschema:"The directory path to list"`
}
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 MoveFileArgs ¶ added in v1.7.1
type PostEditConfig ¶ added in v1.2.0
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 ReadFileArgs ¶ added in v1.7.1
type ReadFileArgs struct {
Path string `json:"path" jsonschema:"The file path to read"`
}
type ReadMultipleFilesArgs ¶ added in v1.7.1
type RunShellArgs ¶ added in v1.7.1
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.0
type SearchFilesContentArgs ¶ added in v1.7.1
type SearchFilesContentArgs struct {
Path string `json:"path" jsonschema:"The starting directory path"`
Query string `json:"query" jsonschema:"The text or regex pattern to search for"`
IsRegex bool `json:"is_regex,omitempty" jsonschema:"If true, treat query as regex; otherwise literal text"`
ExcludePatterns []string `json:"excludePatterns,omitempty" jsonschema:"Patterns to exclude from search"`
}
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 ThinkArgs ¶ added in v1.7.1
type ThinkArgs struct {
Thought string `json:"thought" jsonschema:"The thought to think about"`
}
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 TransferTaskArgs ¶ added in v1.7.1
type TransferTaskArgs struct {
Agent string `json:"agent" jsonschema:"The name of the agent to transfer the task to."`
Task string `json:"task" jsonschema:"A clear and concise description of the task the member should achieve."`
ExpectedOutput string `json:"expected_output" jsonschema:"The expected output from the member (optional)."`
}
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
type UpdateTodoArgs ¶ added in v1.7.1
type WriteFileArgs ¶ added in v1.7.1
Click to show internal directories.
Click to hide internal directories.