eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
23 lines (22 loc) • 839 B
TypeScript
import type { ToolDefinition } from "#public/definitions/tool.js";
/**
* Input shape accepted by {@link defineGlobTool}.
*/
export interface DefineGlobToolInput {
/**
* Optional model-facing description. Defaults to a generic
* "Search for files by glob pattern in the workspace sandbox." line.
*/
readonly description?: string;
}
/**
* Defines a model-visible file-search tool that discovers files by
* glob pattern inside the agent's sandbox. Uses the same executor core
* as the framework `glob` 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/find_files.ts` becomes a tool named
* `find_files`).
*/
export declare function defineGlobTool(input?: DefineGlobToolInput): ToolDefinition;