Documentation
¶
Index ¶
- Variables
- 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 DeleteFile(ctx context.Context, args fstool.DeleteFileArgs) (*fstool.DeleteFileOut, error)
- func DeleteText(ctx context.Context, args texttool.DeleteTextArgs) (*texttool.DeleteTextOut, error)
- func FindText(ctx context.Context, args texttool.FindTextArgs) (*texttool.FindTextOut, error)
- func InsertText(ctx context.Context, args texttool.InsertTextArgs) (*texttool.InsertTextOut, error)
- func ListDirectory(ctx context.Context, args fstool.ListDirectoryArgs) (*fstool.ListDirectoryOut, error)
- func MIMEForExtension(ctx context.Context, args fstool.MIMEForExtensionArgs) (*fstool.MIMEForExtensionOut, error)
- func MIMEForPath(ctx context.Context, args fstool.MIMEForPathArgs) (*fstool.MIMEForPathOut, 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 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 StatPath(ctx context.Context, args fstool.StatPathArgs) (*fstool.StatPathOut, 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/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, }, }
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 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 DeleteFile ¶
func DeleteFile(ctx context.Context, args fstool.DeleteFileArgs) (*fstool.DeleteFileOut, error)
func DeleteText ¶ added in v0.1.0
func DeleteText(ctx context.Context, args texttool.DeleteTextArgs) (*texttool.DeleteTextOut, 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 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 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 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.