@sema-agent/core
Version:
Stateless, task-oriented AI agent core
7 lines (6 loc) • 718 B
TypeScript
/** Say a fact once to each notice receiver: `deliver` runs unless `sink` (the deployment's `onNotice`) has already been told `key`; a
* receiver is a function, as `deliverEngineNotice` reads the seat — with none (absent, or a seat holding anything else) the unit is the
* process. `key` names the fact: a notice's code, with what it is about when the code is said once per thing. */
export declare function noticeOncePerSink(sink: ((notice: never) => void) | undefined, key: string, deliver: () => void): void;
/** Test seam (mirrors `__resetMalformedNoticeSeatAnnouncement`): forget what the default seat was told. Never called by production code. */
export declare function __resetNoticedOncePerSink(): void;