Skip to content

apollo-code


apollo-code / tools/src / GrepTool

Class: GrepTool

Implements

  • Tool<{ path?: string; pattern: string; }>

Constructors

Constructor

new GrepTool(): GrepTool

Returns

GrepTool

Properties

description

readonly description: "Search text in files" = 'Search text in files'

Implementation of

Tool.description


inputSchema

readonly inputSchema: never

Implementation of

Tool.inputSchema


name

readonly name: "Grep" = 'Grep'

Implementation of

Tool.name


readonly

readonly readonly: true = true

Implementation of

Tool.readonly

Methods

invoke()

invoke(i, c): Promise<ToolResult>

Parameters

i
path?

string

pattern

string

c

ToolContext

Returns

Promise<ToolResult>

Implementation of

Tool.invoke


permissionSpec()

permissionSpec(i): PermissionSpec

Parameters

i
path?

string

Returns

PermissionSpec

Implementation of

Tool.permissionSpec