tools

package
v0.0.0-...-cdc720d Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SubmitResultReturnDirectly = map[string]bool{
		"SubmitResult": true,
	}
)

Functions

func EditFilePostProcess

func EditFilePostProcess(ctx context.Context, baseTool tool.InvokableTool, toolResponse, toolArguments string) (string, error)

func FilePostProcess

func FilePostProcess(ctx context.Context, baseTool tool.InvokableTool, toolResponse, toolArguments string) (string, error)

func NewBashTool

func NewBashTool(op commandline.Operator) tool.InvokableTool

func NewEditFileTool

func NewEditFileTool(op commandline.Operator) tool.InvokableTool

func NewPythonRunnerTool

func NewPythonRunnerTool(op commandline.Operator) tool.InvokableTool

func NewReadFileTool

func NewReadFileTool(op commandline.Operator) tool.InvokableTool

func NewToolImageReader

func NewToolImageReader(visionModel model.BaseChatModel) tool.InvokableTool

func NewToolSubmitResult

func NewToolSubmitResult(op commandline.Operator) tool.InvokableTool

func NewTreeTool

func NewTreeTool(op commandline.Operator) tool.InvokableTool

func NewWrapTool

func NewWrapTool(t tool.InvokableTool, preprocess []ToolRequestPreprocess, postprocess []ToolResponsePostprocess) tool.InvokableTool

func ToolRequestRepairJSON

func ToolRequestRepairJSON(ctx context.Context, baseTool tool.InvokableTool, toolArguments string) (string, error)

Types

type ToolRequestPreprocess

type ToolRequestPreprocess func(ctx context.Context, baseTool tool.InvokableTool, toolArguments string) (string, error)

type ToolResponsePostprocess

type ToolResponsePostprocess func(ctx context.Context, baseTool tool.InvokableTool, toolResponse, toolArguments string) (string, error)

Jump to

Keyboard shortcuts

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