texteditor

package
v0.0.0-...-82d1dcb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (tool.InvokableTool, error)

Types

type Request

type Request struct {
	Command  string `` /* 193-byte string literal not displayed */
	Path     string `` /* 128-byte string literal not displayed */
	OldStr   string `json:"old_str,omitempty" jsonschema:"description=The string to be replaced."`
	NewStr   string `json:"new_str,omitempty" jsonschema:"description=The string to replace the old string."`
	FileText string `json:"file_text,omitempty" jsonschema:"description=The new content of the file."`
}

type Response

type Response struct {
	FileText string `json:"file_text,omitempty" jsonschema:"description=The new content of the file."`
	Message  string `json:"message,omitempty" jsonschema:"description=Success message."`
}

type TextEditor

type TextEditor struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL