eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
20 lines (19 loc) • 849 B
TypeScript
import type { Approval } from "#public/definitions/approval.js";
/**
* Returns an `approval` callback that always requires user approval before
* the tool executes.
*/
export declare function always<TInput = unknown>(): Approval<TInput>;
/**
* Returns an `approval` callback that never requires user approval before
* the tool executes.
*/
export declare function never<TInput = unknown>(): Approval<TInput>;
/**
* Returns an `approval` callback that requires approval until the user
* approves this tool once in the current session. A tool is recorded as
* approved only on an explicit approval; a denial (or continuing without
* responding) leaves it unrecorded, so the next call prompts again. Keys off
* the bare tool name, so it ignores compound approval keys.
*/
export declare function once<TInput = unknown>(): Approval<TInput>;