Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/tools / code-mode / createCodeSearchTool

Function: createCodeSearchTool()

ts
function createCodeSearchTool(opts): Tool<{
  limit?: number;
  query: string;
}, string>;

Defined in: packages/tools/src/code-mode/meta-tools.ts:73

Build the code_search meta-tool. Returns matching tools.<name>(…) signatures as text (eager substring match + the deferred pool).

Parameters

ParameterType
optsCodeSearchToolOptions

Returns

Tool<{ limit?: number; query: string; }, string>

Stable