Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2026 Changes in this version + const SearchHint + const ToolDescription + const ToolName + type GitDiff = shared.GitDiff + type StructuredPatchHunk struct + Lines []string + NewLines int + NewStart int + OldLines int + OldStart int + type Tool struct + func NewEditTool(workingDir string) *Tool + func (e *Tool) BackfillInput(ctx context.Context, input map[string]any) map[string]any + func (e *Tool) Call(ctx context.Context, input tool.CallInput, permissionCheck types.CanUseToolFn) (tool.CallResult, error) + func (e *Tool) CheckPermissions(ctx context.Context, input map[string]any, toolCtx tool.ToolUseContext) types.PermissionResult + func (e *Tool) Definition() tool.Definition + func (e *Tool) Description(ctx context.Context) (string, error) + func (e *Tool) FormatResult(data any) string + func (e *Tool) GetWorkingDir() string + func (e *Tool) IsConcurrencySafe(input map[string]any) bool + func (e *Tool) IsEnabled() bool + func (e *Tool) IsReadOnly(input map[string]any) bool + func (e *Tool) SetWorkingDir(dir string) + func (e *Tool) ValidateInput(ctx context.Context, input map[string]any) (map[string]any, error)