Documentation
¶
Overview ¶
Package exploretools provides the explore tool: a read-only sub-agent that investigates the repository with search_files, list_files and read_file in its own short conversation and returns a short report. The files it reads never enter the main conversation, which keeps the main context (and the cost of every later step) small; with a cheaper EXPLORE_MODEL it also costs less than reading the same files in the main loop.
Index ¶
Constants ¶
const (
DefaultMaxSteps = 12
)
Limits.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// Source provides the file tools (the sandbox tools); only its read-only search/read/list tools are used.
Source tools.Provider
Models llm.Factory
// Model is the model id of the explorer.
Model string
MaxSteps int
// Caller bounds and retries each model call of the explorer (first-chunk, idle and total budgets, step retries): the
// same watchdog the main loop gives its calls. Nil: the default budgets, no retry.
Caller *agent.Caller
}
Provider offers the explore tool.