Documentation
¶
Index ¶
- Variables
- func Add(ctx context.Context, args gittool.AddArgs) (*gittool.AddOut, error)
- func ApplyUnifiedDiff(ctx context.Context, args texttool.ApplyUnifiedDiffArgs) (*texttool.ApplyUnifiedDiffOut, error)
- func Blame(ctx context.Context, args gittool.BlameArgs) (*gittool.BlameOut, error)
- func Branches(ctx context.Context, args gittool.BranchesArgs) (*gittool.BranchesOut, error)
- func CallUsingDefaultGoRegistry(ctx context.Context, funcID string, args json.RawMessage, ...) ([]llmtoolsSpec.ToolOutputUnion, error)
- func CallUsingRegistry(ctx context.Context, reg *llmtools.Registry, funcID string, ...) ([]llmtoolsSpec.ToolOutputUnion, error)
- func ChangedFiles(ctx context.Context, args gittool.ChangedFilesArgs) (*gittool.ChangedFilesOut, error)
- func Checkout(ctx context.Context, args gittool.CheckoutArgs) (*gittool.CheckoutOut, error)
- func Commit(ctx context.Context, args gittool.CommitArgs) (*gittool.CommitOut, error)
- func CreateBranch(ctx context.Context, args gittool.CreateBranchArgs) (*gittool.CreateBranchOut, error)
- func CreateTag(ctx context.Context, args gittool.CreateTagArgs) (*gittool.CreateTagOut, error)
- func DeleteFile(ctx context.Context, args fstool.DeleteFileArgs) (*fstool.DeleteFileOut, error)
- func DeleteTag(ctx context.Context, args gittool.DeleteTagArgs) (*gittool.DeleteTagOut, error)
- func DeleteText(ctx context.Context, args texttool.DeleteTextArgs) (*texttool.DeleteTextOut, error)
- func Diff(ctx context.Context, args gittool.DiffArgs) (*gittool.DiffOut, error)
- func FetchURL(ctx context.Context, args webtool.FetchURLArgs) ([]llmtoolsSpec.ToolOutputUnion, error)
- func FileHistory(ctx context.Context, args gittool.FileHistoryArgs) (*gittool.FileHistoryOut, error)
- func FindRepos(ctx context.Context, args gittool.FindReposArgs) (*gittool.FindReposOut, error)
- func FindText(ctx context.Context, args texttool.FindTextArgs) (*texttool.FindTextOut, error)
- func Grep(ctx context.Context, args gittool.GrepArgs) (*gittool.GrepOut, error)
- func Init(ctx context.Context, args gittool.InitArgs) (*gittool.InitOut, error)
- func InsertText(ctx context.Context, args texttool.InsertTextArgs) (*texttool.InsertTextOut, error)
- func ListDirectory(ctx context.Context, args fstool.ListDirectoryArgs) (*fstool.ListDirectoryOut, error)
- func ListTree(ctx context.Context, args gittool.ListTreeArgs) (*gittool.ListTreeOut, error)
- func Log(ctx context.Context, args gittool.LogArgs) (*gittool.LogOut, error)
- func MIMEForExtension(ctx context.Context, args fstool.MIMEForExtensionArgs) (*fstool.MIMEForExtensionOut, error)
- func MIMEForPath(ctx context.Context, args fstool.MIMEForPathArgs) (*fstool.MIMEForPathOut, error)
- func ReadBlob(ctx context.Context, args gittool.ReadBlobArgs) (*gittool.ReadBlobOut, error)
- func ReadFile(ctx context.Context, args fstool.ReadFileArgs) ([]llmtoolsSpec.ToolOutputUnion, error)
- func ReadImage(ctx context.Context, args imagetool.ReadImageArgs) (*imagetool.ReadImageOut, error)
- func ReadTextRange(ctx context.Context, args texttool.ReadTextRangeArgs) (*texttool.ReadTextRangeOut, error)
- func RegisterOutputsToolUsingDefaultGoRegistry[T any](tool llmtoolsSpec.Tool, ...) error
- func RegisterTypedAsTextToolUsingDefaultGoRegistry[T, R any](tool llmtoolsSpec.Tool, fn func(context.Context, T) (R, error)) error
- func ReplaceText(ctx context.Context, args texttool.ReplaceTextArgs) (*texttool.ReplaceTextOut, error)
- func RepoInfo(ctx context.Context, args gittool.RepoInfoArgs) (*gittool.RepoInfoOut, error)
- func Reset(ctx context.Context, args gittool.ResetArgs) (*gittool.ResetOut, error)
- func RunScript(ctx context.Context, args exectool.RunScriptArgs) (*exectool.RunScriptOut, error)
- func SearchFiles(ctx context.Context, args fstool.SearchFilesArgs) (*fstool.SearchFilesOut, error)
- func ShellCommand(ctx context.Context, args exectool.ShellCommandArgs) (*exectool.ShellCommandOut, error)
- func Show(ctx context.Context, args gittool.ShowArgs) (*gittool.ShowOut, error)
- func StatPath(ctx context.Context, args fstool.StatPathArgs) (*fstool.StatPathOut, error)
- func Status(ctx context.Context, args gittool.StatusArgs) (*gittool.StatusOut, error)
- func Tags(ctx context.Context, args gittool.TagsArgs) (*gittool.TagsOut, error)
- func WriteFile(ctx context.Context, args fstool.WriteFileArgs) (*fstool.WriteFileOut, error)
- type LLMToolMeta
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 ApplyUnifiedDiff ¶ added in v0.1.14
func ApplyUnifiedDiff(ctx context.Context, args texttool.ApplyUnifiedDiffArgs) (*texttool.ApplyUnifiedDiffOut, error)
func Branches ¶ added in v0.1.25
func Branches(ctx context.Context, args gittool.BranchesArgs) (*gittool.BranchesOut, error)
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 ChangedFiles(ctx context.Context, args gittool.ChangedFilesArgs) (*gittool.ChangedFilesOut, error)
func Checkout ¶ added in v0.1.25
func Checkout(ctx context.Context, args gittool.CheckoutArgs) (*gittool.CheckoutOut, error)
func CreateBranch ¶ added in v0.1.25
func CreateBranch(ctx context.Context, args gittool.CreateBranchArgs) (*gittool.CreateBranchOut, error)
func CreateTag ¶ added in v0.1.25
func CreateTag(ctx context.Context, args gittool.CreateTagArgs) (*gittool.CreateTagOut, error)
func DeleteFile ¶
func DeleteFile(ctx context.Context, args fstool.DeleteFileArgs) (*fstool.DeleteFileOut, error)
func DeleteTag ¶ added in v0.1.25
func DeleteTag(ctx context.Context, args gittool.DeleteTagArgs) (*gittool.DeleteTagOut, error)
func DeleteText ¶ added in v0.1.0
func DeleteText(ctx context.Context, args texttool.DeleteTextArgs) (*texttool.DeleteTextOut, error)
func FetchURL ¶ added in v0.1.25
func FetchURL(ctx context.Context, args webtool.FetchURLArgs) ([]llmtoolsSpec.ToolOutputUnion, error)
func FileHistory ¶ added in v0.1.25
func FileHistory(ctx context.Context, args gittool.FileHistoryArgs) (*gittool.FileHistoryOut, error)
func FindRepos ¶ added in v0.1.25
func FindRepos(ctx context.Context, args gittool.FindReposArgs) (*gittool.FindReposOut, error)
func FindText ¶
func FindText(ctx context.Context, args texttool.FindTextArgs) (*texttool.FindTextOut, error)
func InsertText ¶ added in v0.1.0
func InsertText(ctx context.Context, args texttool.InsertTextArgs) (*texttool.InsertTextOut, error)
func ListDirectory ¶
func ListDirectory(ctx context.Context, args fstool.ListDirectoryArgs) (*fstool.ListDirectoryOut, error)
func ListTree ¶ added in v0.1.25
func ListTree(ctx context.Context, args gittool.ListTreeArgs) (*gittool.ListTreeOut, error)
func MIMEForExtension ¶
func MIMEForExtension(ctx context.Context, args fstool.MIMEForExtensionArgs) (*fstool.MIMEForExtensionOut, error)
func MIMEForPath ¶
func MIMEForPath(ctx context.Context, args fstool.MIMEForPathArgs) (*fstool.MIMEForPathOut, error)
func ReadBlob ¶ added in v0.1.25
func ReadBlob(ctx context.Context, args gittool.ReadBlobArgs) (*gittool.ReadBlobOut, error)
func ReadFile ¶
func ReadFile(ctx context.Context, args fstool.ReadFileArgs) ([]llmtoolsSpec.ToolOutputUnion, error)
func ReadImage ¶
func ReadImage(ctx context.Context, args imagetool.ReadImageArgs) (*imagetool.ReadImageOut, error)
func ReadTextRange ¶
func ReadTextRange(ctx context.Context, args texttool.ReadTextRangeArgs) (*texttool.ReadTextRangeOut, error)
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 ReplaceText ¶ added in v0.1.0
func ReplaceText(ctx context.Context, args texttool.ReplaceTextArgs) (*texttool.ReplaceTextOut, error)
func RepoInfo ¶ added in v0.1.25
func RepoInfo(ctx context.Context, args gittool.RepoInfoArgs) (*gittool.RepoInfoOut, error)
func RunScript ¶
func RunScript(ctx context.Context, args exectool.RunScriptArgs) (*exectool.RunScriptOut, error)
func SearchFiles ¶
func SearchFiles(ctx context.Context, args fstool.SearchFilesArgs) (*fstool.SearchFilesOut, error)
func ShellCommand ¶
func ShellCommand(ctx context.Context, args exectool.ShellCommandArgs) (*exectool.ShellCommandOut, error)
func StatPath ¶
func StatPath(ctx context.Context, args fstool.StatPathArgs) (*fstool.StatPathOut, 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
}
Click to show internal directories.
Click to hide internal directories.