Skip to content

Graphorin API reference v0.7.0


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

Interface: CodeSearchToolOptions

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

Configuration for createCodeSearchTool.

Properties

PropertyModifierTypeDescriptionDefined in
approvalGatedTools?readonlyreadonly string[]Approval-gated tool names (TL-8) - excluded from the code API but surfaced in matches with a call-directly marker so the model is never silently missing a capability.packages/tools/src/code-mode/meta-tools.ts:57
defaultK?readonlynumberDefault match cap when the model passes none. Default 8.packages/tools/src/code-mode/meta-tools.ts:64
maxK?readonlynumberHard cap on matches. Default 25.packages/tools/src/code-mode/meta-tools.ts:66
projectionreadonlyCodeApiProjectionProjection over the eager (advertised) tool set.packages/tools/src/code-mode/meta-tools.ts:51
searchDeferred?readonly(query, k) => Promise<readonly CodeSearchMatch[]>Search the deferred pool for query, returning up to k matches. Typically registry.searchDeferred. Omitted ⇒ eager-only search.packages/tools/src/code-mode/meta-tools.ts:62