eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
23 lines (22 loc) • 845 B
TypeScript
import type { ToolDefinition } from "#public/definitions/tool.js";
/**
* Input shape accepted by {@link defineGrepTool}.
*/
export interface DefineGrepToolInput {
/**
* Optional model-facing description. Defaults to a generic
* "Search file contents by pattern in the workspace sandbox." line.
*/
readonly description?: string;
}
/**
* Defines a model-visible content-search tool that searches file
* contents by pattern inside the agent's sandbox. Uses the same
* executor core as the framework `grep` tool, so input schema, error
* messages, and result shape are identical.
*
* The tool's runtime name comes from the authored file's slug (for
* example `agent/tools/search_code.ts` becomes a tool named
* `search_code`).
*/
export declare function defineGrepTool(input?: DefineGrepToolInput): ToolDefinition;