tools

package
v0.0.0-...-512ee05 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindProjectRoot

func FindProjectRoot() (string, error)

FindProjectRoot locates the project root by searching for dsgo.go file. It searches upward from the current directory until it finds dsgo.go. Returns an error if dsgo.go is not found (should never happen in valid examples).

func GetAllFilesystemTools

func GetAllFilesystemTools() []dsgo.Tool

GetAllFilesystemTools returns all available filesystem tools as a slice. This is the recommended way to get all filesystem tools for use in examples.

func NewListFilesTool

func NewListFilesTool() dsgo.Tool

NewListFilesTool creates a tool for listing files and directories in a given path up to a specified depth. The tool automatically detects the project root and constrains all operations to within project boundaries.

func NewReadFileTool

func NewReadFileTool() dsgo.Tool

NewReadFileTool creates a tool for reading the content of a specific file. The tool automatically detects the project root and ensures files are within project boundaries.

func NewSearchFilesTool

func NewSearchFilesTool() dsgo.Tool

NewSearchFilesTool creates a tool for searching files matching a glob pattern. The tool automatically detects the project root and constrains searches to within project boundaries.

Types

This section is empty.

Jump to

Keyboard shortcuts

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