tools

package
v0.20260526.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildBuildToolDump

func BuildBuildToolDump() (string, error)

func BuildPlanToolDump

func BuildPlanToolDump() (string, error)

func Exec

func Exec(ctx context.Context, env *Env, mode string, inv tooling.Invocation) (any, error)

func MergeWebSearchExtras

func MergeWebSearchExtras(cfg *config.Root, engineKey string, tool map[string]any) map[string]any

func NativeToolParams

func NativeToolParams(mode string) ([]openai.ChatCompletionToolUnionParam, error)

func NewShellCommand

func NewShellCommand(ctx context.Context, dir, script string) *exec.Cmd

Types

type Env

type Env struct {
	ProjHex                              string
	ProjRoot                             string
	Cfg                                  *config.Root
	MCP                                  *solomonmcp.Manager
	RunNested                            func(ctx context.Context, body string) (string, error)
	RunNestedWithSystem                  func(ctx context.Context, sys, task string) (string, error)
	SetMode                              func(string)
	CurrentMode                          func() string
	CheckpointStageProjAbs               func(path string)
	ActivateInstructionsFromAbsPath      func(absPath string)
	ActivateInstructionsFromShellCommand func(command string)
	MergeInstructionBlock                func(customSys string) (string, error)
}

Jump to

Keyboard shortcuts

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