Documentation
¶
Index ¶
- Variables
- func ContextWithApprovedPath(ctx context.Context, abs string) context.Context
- func ContextWithApprovedPrefix(ctx context.Context, dir string) context.Context
- func EffectiveWorkingDir(workspace string) string
- func IsUnderWorkspaceRoot(absWorkspace, absRequested string) bool
- func NewEditTool(workspace string) types.Tool
- func NewFileTool(workspace string) types.Tool
- func NewReadTool(workspace string) types.Tool
- func NewWriteTool(workspace string) types.Tool
- func ResolveAbsRequested(workspace, requested string) (absWorkspace string, absRequested string, err error)
- func SafePath(ctx context.Context, workspace, requested string) (string, error)
- type EditTool
- type FileTool
- type ReadTool
- type WriteTool
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOutsideWorkspace = errors.New("path outside workspace")
Functions ¶
func ContextWithApprovedPath ¶ added in v1.8.10
func ContextWithApprovedPrefix ¶ added in v1.8.10
func EffectiveWorkingDir ¶ added in v1.8.10
func IsUnderWorkspaceRoot ¶ added in v1.8.10
func NewEditTool ¶
func NewFileTool ¶
func NewReadTool ¶
func NewWriteTool ¶
func ResolveAbsRequested ¶ added in v1.8.10
Types ¶
type EditTool ¶
type EditTool struct {
// contains filtered or unexported fields
}
func (*EditTool) Description ¶
func (*EditTool) Metadata ¶
func (t *EditTool) Metadata() types.ToolMetadata
type FileTool ¶
type FileTool struct {
// contains filtered or unexported fields
}
func (*FileTool) Description ¶
func (*FileTool) Metadata ¶
func (t *FileTool) Metadata() types.ToolMetadata
type ReadTool ¶
type ReadTool struct {
// contains filtered or unexported fields
}
func (*ReadTool) Description ¶
func (*ReadTool) Metadata ¶
func (t *ReadTool) Metadata() types.ToolMetadata
Click to show internal directories.
Click to hide internal directories.