@sema-agent/core
Version:
Stateless, task-oriented AI agent core
10 lines (9 loc) • 738 B
TypeScript
import type { PromptBlockCause } from "../terminal-cause.js";
import type { BlockedRef } from "./synthetic-tools.js";
/**
* Hold the task's first prompt back: `ref.reason` is `text` in the engine's reminder frame, `ref.detail` names `cause`.
* `text` is the hook's own words when `cause` is `"block"` — they also become `detail.hookReason`, folded to one line,
* bounded, envelope tags defused, with no reminder frame and no session mark; a reason that folds to nothing leaves the
* key out. For every other cause `text` is the engine's sentence about the hook's ending and `hookReason` is never minted.
*/
export declare function holdPrompt(ref: BlockedRef, mark: string | undefined, cause: PromptBlockCause, text: string): void;