llmtoolsutil

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LLMToolsGoBuiltinCatalog = map[string]LLMToolMeta{

	"github.com/flexigpt/llmtools-go/fstool/readfile.ReadFile": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsFS),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/fstool/searchfiles.SearchFiles": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsFS),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/fstool/writefile.WriteFile": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsFS),
		AutoExecReco: false,
	},
	"github.com/flexigpt/llmtools-go/fstool/deletefile.DeleteFile": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsFS),
		AutoExecReco: false,
	},
	"github.com/flexigpt/llmtools-go/fstool/listdirectory.ListDirectory": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsFS),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/fstool/statpath.StatPath": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsFS),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/fstool/mimeforpath.MIMEForPath": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsFS),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/fstool/mimeforextension.MIMEForExtension": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsFS),
		AutoExecReco: true,
	},

	"github.com/flexigpt/llmtools-go/imagetool/readimage.ReadImage": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsImage),
		AutoExecReco: true,
	},

	"github.com/flexigpt/llmtools-go/webtool/fetchurl.FetchURL": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsWeb),
		AutoExecReco: true,
	},

	"github.com/flexigpt/llmtools-go/exectool/shellcommand.ShellCommand": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsExec),
		AutoExecReco: false,
	},
	"github.com/flexigpt/llmtools-go/exectool/runscript.RunScript": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsExec),
		AutoExecReco: false,
	},

	"github.com/flexigpt/llmtools-go/texttool/readtextrange.ReadTextRange": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsText),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/texttool/findtext.FindText": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsText),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/texttool/inserttext.InsertText": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsText),
		AutoExecReco: false,
	},
	"github.com/flexigpt/llmtools-go/texttool/replacetext.ReplaceText": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsText),
		AutoExecReco: false,
	},
	"github.com/flexigpt/llmtools-go/texttool/deletetext.DeleteText": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsText),
		AutoExecReco: false,
	},
	"github.com/flexigpt/llmtools-go/texttool/applyunifieddiff.ApplyUnifiedDiff": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsText),
		AutoExecReco: false,
	},

	"github.com/flexigpt/llmtools-go/gittool/status.Status": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/gittool/diff.Diff": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/gittool/log.Log": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/gittool/show.Show": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/gittool/branches.Branches": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/gittool/tags.Tags": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/gittool/createtag.CreateTag": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: false,
	},
	"github.com/flexigpt/llmtools-go/gittool/deletetag.DeleteTag": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: false,
	},
	"github.com/flexigpt/llmtools-go/gittool/changedfiles.ChangedFiles": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/gittool/listtree.ListTree": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/gittool/readblob.ReadBlob": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/gittool/findrepos.FindRepos": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/gittool/add.Add": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: false,
	},
	"github.com/flexigpt/llmtools-go/gittool/reset.Reset": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: false,
	},
	"github.com/flexigpt/llmtools-go/gittool/commit.Commit": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: false,
	},
	"github.com/flexigpt/llmtools-go/gittool/createbranch.CreateBranch": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: false,
	},
	"github.com/flexigpt/llmtools-go/gittool/checkout.Checkout": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: false,
	},
	"github.com/flexigpt/llmtools-go/gittool/init.Init": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: false,
	},
	"github.com/flexigpt/llmtools-go/gittool/blame.Blame": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/gittool/filehistory.FileHistory": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/gittool/repoinfo.RepoInfo": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: true,
	},
	"github.com/flexigpt/llmtools-go/gittool/grep.Grep": {
		BundleID:     bundleitemutils.BundleID(builtin.BuiltinBundleIDLLMToolsGit),
		AutoExecReco: true,
	},
}

LLMToolsGoBuiltinCatalog is the SINGLE source of truth for how llmtools-go builtins are represented in this app.

Key: exact Go FuncID string from llmtools-go (stable in your environment). Value: bundle routing + auto-exec recommendation.

When llmtools-go returns a tool that isn't mapped here, injectLLMToolsGoBuiltins fails with a clear error telling you to add it.

Functions

func Add added in v0.1.25

func Add(ctx context.Context, args gittool.AddArgs) (*gittool.AddOut, error)

func ApplyUnifiedDiff added in v0.1.14

func Blame added in v0.1.25

func Blame(ctx context.Context, args gittool.BlameArgs) (*gittool.BlameOut, error)

func Branches added in v0.1.25

func CallUsingDefaultGoRegistry added in v0.0.79

func CallUsingDefaultGoRegistry(
	ctx context.Context,
	funcID string,
	args json.RawMessage,
	callOpts ...llmtools.CallOption,
) ([]llmtoolsSpec.ToolOutputUnion, error)

func CallUsingRegistry added in v0.0.82

func CallUsingRegistry(
	ctx context.Context,
	reg *llmtools.Registry,
	funcID string,
	args json.RawMessage,
	callOpts ...llmtools.CallOption,
) ([]llmtoolsSpec.ToolOutputUnion, error)

func ChangedFiles added in v0.1.25

func Checkout added in v0.1.25

func Commit added in v0.1.25

func Commit(ctx context.Context, args gittool.CommitArgs) (*gittool.CommitOut, error)

func CreateBranch added in v0.1.25

func CreateTag added in v0.1.25

func DeleteTag added in v0.1.25

func DeleteText added in v0.1.0

func Diff added in v0.1.25

func Diff(ctx context.Context, args gittool.DiffArgs) (*gittool.DiffOut, error)

func FetchURL added in v0.1.25

func FileHistory added in v0.1.25

func FindRepos added in v0.1.25

func Grep added in v0.1.25

func Grep(ctx context.Context, args gittool.GrepArgs) (*gittool.GrepOut, error)

func Init added in v0.1.25

func Init(ctx context.Context, args gittool.InitArgs) (*gittool.InitOut, error)

func InsertText added in v0.1.0

func ListTree added in v0.1.25

func Log added in v0.1.25

func Log(ctx context.Context, args gittool.LogArgs) (*gittool.LogOut, error)

func ReadBlob added in v0.1.25

func RegisterOutputsToolUsingDefaultGoRegistry added in v0.0.79

func RegisterOutputsToolUsingDefaultGoRegistry[T any](
	tool llmtoolsSpec.Tool,
	fn func(context.Context, T) ([]llmtoolsSpec.ToolOutputUnion, error),
) error

func RegisterTypedAsTextToolUsingDefaultGoRegistry added in v0.0.79

func RegisterTypedAsTextToolUsingDefaultGoRegistry[T, R any](
	tool llmtoolsSpec.Tool,
	fn func(context.Context, T) (R, error),
) error

func ReplaceText added in v0.1.0

func RepoInfo added in v0.1.25

func Reset added in v0.1.25

func Reset(ctx context.Context, args gittool.ResetArgs) (*gittool.ResetOut, error)

func Show added in v0.1.25

func Show(ctx context.Context, args gittool.ShowArgs) (*gittool.ShowOut, error)

func StatPath

func StatPath(ctx context.Context, args fstool.StatPathArgs) (*fstool.StatPathOut, error)

func Status added in v0.1.25

func Status(ctx context.Context, args gittool.StatusArgs) (*gittool.StatusOut, error)

func Tags added in v0.1.25

func Tags(ctx context.Context, args gittool.TagsArgs) (*gittool.TagsOut, error)

func WriteFile

func WriteFile(ctx context.Context, args fstool.WriteFileArgs) (*fstool.WriteFileOut, error)

Types

type LLMToolMeta added in v0.0.79

type LLMToolMeta struct {
	BundleID     bundleitemutils.BundleID
	AutoExecReco bool
}

Jump to

Keyboard shortcuts

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