exploretools

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 11 Imported by: ? 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

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

View Source
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.

func (*Provider) Name

func (p *Provider) Name() string

Name implements tools.Provider.

func (*Provider) Tools

func (p *Provider) Tools(_ context.Context, rc tools.RunContext) ([]ai.BaseTool, func(), error)

Tools implements tools.Provider.

Jump to

Keyboard shortcuts

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