Skip to content

ToolRegistry

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/agent-core/src/tools/tool-registry.ts

Methods

MethodSignatureReturns
searchsearch(query: string, maxResults: number)ToolSearchResult[]
buildDeferredToolsReminderbuildDeferredToolsReminder()string
createToolSearchToolcreateToolSearchTool()`ToolDefinition
getget(name: string)`ToolDefinition
estimateTokenSavingsestimateTokenSavings(){ beforeTokens: number; afterTokens: number; savedTokens: number; savingsPercent: number }

Properties

PropertyType
alwaysLoadedToolDefinition<any>[]
deferredToolDefinition<any>[]

Where it refuses work

  • ToolRegistry stops the work with an early return when this.deferred.length === 0, in 2 places.
  • ToolRegistry stops the work with an early return when keywords.length === 0.
  • ToolRegistry stops the work with an early return when results.length === 0.

Was this page helpful?

Download as PDF