git

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package git provides git tool for LLM to use. The implementation is a piece, while the main purpose is to provide the git help system, which is like a git skill system.

Index

Constants

This section is empty.

Variables

View Source
var (
	RegisterTool       = toolcall.RegisterTool
	ShellExec          = toolcall.ShellExec
	TitleLikePattern   = toolcall.TitleLikePattern
	ContentLikePattern = toolcall.ContentLikePattern
)

Functions

func GitCommand

func GitCommand(ctx context.Context, args ...string) (result string, suggestion string, err error)

func SliceString

func SliceString(args []string) string

func SubCommands

func SubCommands() []string

func ToolArgsValue

func ToolArgsValue[T Primitive](args ToolArgs, key string, defaultValue T) T

Types

type Primitive

type Primitive = toolcall.Primitive

type ToolArgs

type ToolArgs = toolcall.ToolArgs

type ToolDef

type ToolDef = toolcall.ToolDef

Source Files

  • git.go
  • git_run.go
  • git_tool.go

Jump to

Keyboard shortcuts

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