Documentation
¶
Index ¶
- func FetchGitCommits(ctx context.Context, workingDir, base, head string) (string, error)
- func FetchGitDiff(ctx context.Context, workingDir, base, head string, ignoredLockFiles []string) (string, []string, error)
- func RegisterLocalTools(r *Registry, root string, ignoredLockFiles []string, wishlistDir string)
- func RegisterToolWithArgs[T any](r *Registry, def llm.ToolDef, handler func(context.Context, T) (string, error))
- type Registry
- type ToolHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchGitCommits ¶
FetchGitCommits returns a bulleted list of commit subjects (first line of message) between base and head, excluding merge commits.
func FetchGitDiff ¶
func RegisterLocalTools ¶
func RegisterToolWithArgs ¶ added in v0.5.0
func RegisterToolWithArgs[T any](r *Registry, def llm.ToolDef, handler func(context.Context, T) (string, error))
RegisterToolWithArgs registers a tool that uses a specific struct for its arguments. It handles unmarshaling the arguments and returns an error if they are malformed.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) HandleCall ¶
func (*Registry) RegisterTool ¶
func (r *Registry) RegisterTool(def llm.ToolDef, handler ToolHandler)
Click to show internal directories.
Click to hide internal directories.