Documentation
¶
Index ¶
- Constants
- func RegisterReadOnlyWorkspace(reg *tools.Registry, opts WorkspaceOptions) error
- func RegisterSearch(reg *tools.Registry, opts SearchOptions) error
- func RegisterSelected(reg *tools.Registry, opts SelectedOptions, names ...string) error
- func RegisterShell(reg *tools.Registry, opts ShellOptions) error
- func RegisterWorkspaceMutation(reg *tools.Registry, opts WorkspaceOptions) error
- type CommandRequest
- type CommandResult
- type CommandRunner
- type SearchOptions
- type SelectedOptions
- type ShellOptions
- type WorkspaceOptions
Constants ¶
View Source
const ( ToolRead = "read" ToolList = "list" ToolGlob = "glob" ToolGrep = "grep" ToolApplyPatch = "apply_patch" ToolWrite = "write" ToolShell = "shell" ToolWebSearch = "web_search" )
Variables ¶
This section is empty.
Functions ¶
func RegisterReadOnlyWorkspace ¶
func RegisterReadOnlyWorkspace(reg *tools.Registry, opts WorkspaceOptions) error
func RegisterSearch ¶
func RegisterSearch(reg *tools.Registry, opts SearchOptions) error
func RegisterSelected ¶
func RegisterSelected(reg *tools.Registry, opts SelectedOptions, names ...string) error
func RegisterShell ¶
func RegisterShell(reg *tools.Registry, opts ShellOptions) error
func RegisterWorkspaceMutation ¶
func RegisterWorkspaceMutation(reg *tools.Registry, opts WorkspaceOptions) error
Types ¶
type CommandRequest ¶
type CommandResult ¶
type CommandRunner ¶
type CommandRunner interface {
Run(context.Context, CommandRequest) (CommandResult, error)
}
type SearchOptions ¶
type SelectedOptions ¶
type SelectedOptions struct {
Workspace WorkspaceOptions
Shell ShellOptions
Search SearchOptions
}
type ShellOptions ¶
type ShellOptions struct {
CWD string
Runner CommandRunner
DefaultTimeoutMS int
MaxOutputBytes int
}
Click to show internal directories.
Click to hide internal directories.