toolsearch

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package toolsearch is the `tool_search` tool, a copy of the coding agent's: the model searches the deferred tools it is not offered yet, and the matches are loaded with the addTools control, so the next request offers them. Loading writes the conversation's modelTools (its add), so loaded tools stay offered on that branch, also after a compaction.

Index

Constants

View Source
const DefaultLimit = 8

DefaultLimit is the number of tools tool_search loads at most when the model gives no limit.

View Source
const ToolName = "tool_search"

ToolName is the name of the tool_search tool.

Variables

This section is empty.

Functions

func CreateExtension

func CreateExtension() *durable.Extension

CreateExtension creates the tool_search extension: install it and select it where the model should find deferred tools.

func CreateTool

func CreateTool() *durable.ToolRegistration

CreateTool creates the tool_search tool.

Types

type Details

type Details struct {
	Loaded []string `json:"loaded"`
}

Details are the details of a tool_search result: the tools it loaded.

Jump to

Keyboard shortcuts

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