tools

package
v2026.1116.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 56 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentDeferredToolNames added in v2026.617.0

func AgentDeferredToolNames() []string

func BuildAgentToolDump added in v2026.610.0

func BuildAgentToolDump() (string, error)

func BuildChatToolDump added in v2026.610.0

func BuildChatToolDump() (string, error)

func BuildDeferredToolDump added in v2026.617.0

func BuildDeferredToolDump() (string, error)

func BuildPlanToolDump

func BuildPlanToolDump() (string, error)

func BuildPlanningNativeToolDump added in v2026.617.0

func BuildPlanningNativeToolDump() (string, error)

func EffectiveSurfaceMode added in v2026.610.0

func EffectiveSurfaceMode(m string) string

func EnsureUniversalTools added in v2026.610.0

func Exec

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

func IsUniversalTool added in v2026.610.0

func IsUniversalTool(name string) bool

func LegacyDeferredToolNames added in v2026.617.0

func LegacyDeferredToolNames() []string

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

func NormalizeMode added in v2026.610.0

func NormalizeMode(m string) string

func PlanToolNames added in v2026.617.0

func PlanToolNames() []string

func PlanningNativeToolParams added in v2026.617.0

func PlanningNativeToolParams() []openai.ChatCompletionToolUnionParam

func ResolveSysPromptPath added in v2026.617.0

func ResolveSysPromptPath(projRoot, p string) string

func ShellFileChangePaths added in v2026.1023.0

func ShellFileChangePaths(root, command string) []string

func WithFileChangeTracking added in v2026.1023.0

func WithFileChangeTracking(ctx context.Context, env *Env, run func() (any, error)) (any, error)

All Solomon shell/edit calls share the project lock, including calls from chats where rendering is disabled. A snapshot can therefore only contain changes made by the tool that owns the lock, not another Solomon chat.

func WithFileChangeTrackingPaths added in v2026.1023.0

func WithFileChangeTrackingPaths(ctx context.Context, env *Env, paths []string, run func() (any, error)) (any, error)

Types

type Env

type Env = agenttoolenv.Env

type SubagentArgs added in v2026.615.0

type SubagentArgs struct {
	SysPromptPath   string `json:"sysPromptPath"`
	Task            string `json:"task"`
	Resume          string `json:"resume,omitempty"`
	Interrupt       bool   `json:"interrupt,omitempty"`
	RunInBackground bool   `json:"run_in_background,omitempty"`
	ReasoningEffort string `json:"reasoningEffort,omitempty"`
	RoleProvider    string `json:"roleProvider,omitempty"`
	RoleModel       string `json:"roleModel,omitempty"`
}

func ParseSubagentArgsForTest added in v2026.615.0

func ParseSubagentArgsForTest(raw json.RawMessage) (SubagentArgs, error)

type SubagentRequest added in v2026.615.0

type SubagentRequest = agenttoolenv.SubagentRequest

type SubagentResponse added in v2026.615.0

type SubagentResponse = agenttoolenv.SubagentResponse

Jump to

Keyboard shortcuts

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