Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/tools / / createToolSearchTool

Function: createToolSearchTool()

ts
function createToolSearchTool(opts): Tool<{
  k?: number;
  query: string;
}, {
  matches: {
     description: string;
     inputSchema: Record<string, unknown>;
     name: string;
     score: number;
     source: "semantic" | "bm25" | "regex-name";
  }[];
}>;

Defined in: packages/tools/src/built-in/tool-search.ts:57

Build a tool_search tool bound to a specific registry.

Parameters

ParameterType
optsToolSearchToolOptions

Returns

Tool<{ k?: number; query: string; }, { matches: { description: string; inputSchema: Record&lt;string, unknown&gt;; name: string; score: number; source: "semantic" | "bm25" | "regex-name"; }[]; }>

Stable