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