Documentation
¶
Index ¶
- Constants
- func CheckPermissions(ctx context.Context, input map[string]any, toolCtx tool.ToolUseContext) types.PermissionResult
- func ParsePosition(pos string) (line, column int, err error)
- type Tool
- func (t *Tool) BackfillInput(ctx context.Context, input map[string]any) map[string]any
- func (t *Tool) Call(ctx context.Context, input tool.CallInput, permissionCheck types.CanUseToolFn) (tool.CallResult, error)
- func (t *Tool) CheckPermissions(ctx context.Context, input map[string]any, toolCtx tool.ToolUseContext) types.PermissionResult
- func (t *Tool) Definition() tool.Definition
- func (t *Tool) Description(ctx context.Context) (string, error)
- func (t *Tool) FormatResult(data any) string
- func (t *Tool) IsConcurrencySafe(input map[string]any) bool
- func (t *Tool) IsEnabled() bool
- func (t *Tool) IsReadOnly(input map[string]any) bool
- func (t *Tool) ValidateInput(ctx context.Context, input map[string]any) (map[string]any, error)
Constants ¶
View Source
const Description = `` /* 1086-byte string literal not displayed */
View Source
const SearchHint = "" /* 130-byte string literal not displayed */
SearchHint is the search hint for the tool
View Source
const ToolName = "lsp"
ToolName is the name of the tool
Variables ¶
This section is empty.
Functions ¶
func CheckPermissions ¶
func CheckPermissions(ctx context.Context, input map[string]any, toolCtx tool.ToolUseContext) types.PermissionResult
CheckPermissions checks if the LSP operation is allowed
func ParsePosition ¶
ParsePosition parses a position string (line:column format)
Types ¶
type Tool ¶
type Tool struct {
// contains filtered or unexported fields
}
Tool implements the LSP tool for code intelligence
func (*Tool) BackfillInput ¶
BackfillInput backfills input
func (*Tool) Call ¶
func (t *Tool) Call(ctx context.Context, input tool.CallInput, permissionCheck types.CanUseToolFn) (tool.CallResult, error)
Call executes the tool
func (*Tool) CheckPermissions ¶
func (t *Tool) CheckPermissions(ctx context.Context, input map[string]any, toolCtx tool.ToolUseContext) types.PermissionResult
CheckPermissions checks permissions
func (*Tool) Definition ¶
func (t *Tool) Definition() tool.Definition
Definition returns the tool definition
func (*Tool) Description ¶
Description returns a human-readable description
func (*Tool) FormatResult ¶
FormatResult formats the result
func (*Tool) IsConcurrencySafe ¶
IsConcurrencySafe returns whether the tool is concurrency safe
func (*Tool) IsReadOnly ¶
IsReadOnly returns whether the tool is read-only
Click to show internal directories.
Click to hide internal directories.