Interface: ToolDiscovery<TTools>
Defined in: packages/core/src/tools/tool-discovery.ts:60
Type Parameters
TTools
TTools extends Record<string, unknown> = Record<string, unknown>
Properties
activate
activate: (
names) =>void
Defined in: packages/core/src/tools/tool-discovery.ts:67
Select tools by name (host seeding, or tools a step just used). Unknown and pinned names are ignored.
Parameters
names
readonly string[]
Returns
void
activeTools
activeTools: (
choice?) =>string[]
Defined in: packages/core/src/tools/tool-discovery.ts:65
The names to send this step. Pass them as AI SDK activeTools (and toolOrder, to keep a stable prefix).
Parameters
choice?
Returns
string[]
deactivate
deactivate: (
names) =>void
Defined in: packages/core/src/tools/tool-discovery.ts:74
Drop tools from the selection (a skill the model unloaded). Pinned names stay; a dropped tool is found again by search. Shrinking the sent list changes the tool prefix, so the next step re-reads it instead of hitting the tools cache.
Parameters
names
readonly string[]
Returns
void
rank
rank: (
query,limit?) =>string[]
Defined in: packages/core/src/tools/tool-discovery.ts:76
Rank the catalog for a query without selecting anything. At most 15 names.
Parameters
query
string
limit?
number
Returns
string[]
searchToolName
searchToolName:
string
Defined in: packages/core/src/tools/tool-discovery.ts:63
selected
selected: () =>
string[]
Defined in: packages/core/src/tools/tool-discovery.ts:78
The currently selected (discovered) names, in activation order.
Returns
string[]
tools
tools:
TTools&Record<string,ZodToolDefinition<ZodType<unknown,unknown,$ZodTypeInternals<unknown,unknown>>,unknown>>
Defined in: packages/core/src/tools/tool-discovery.ts:62
The original tools plus one search tool (a Baleybots tool that AI SDK also accepts directly).