UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

18 lines (17 loc) • 948 B
import type { ApproverDefect } from "../tool-policy.js"; /** * The announcer `resolveAskFor` is handed at every station that puts an ask to an approver (`approval.approver_defect`): the approver * threw, or answered outside its contract, and the call it was asked about is denied fail-closed. The denial is the model's and the * run's — it reads as any refusal; this is the deployment's, who wired a seat that does not keep its contract. Once per denied ask. The * detail names how it failed and what kind of seat it was, and never the thrown text or the answer (the denial the model reads names * them). */ export declare function approverDefectAnnouncer(args: { toolName: string; toolCallId: string; sessionId: string; runId: string; /** The leg's own task id (`Prepared.taskId`), always present. */ taskId: string; onNotice: import("../types.js").RunnerDeps["onNotice"]; }): (defect: ApproverDefect) => void;