UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

10 lines (9 loc) • 764 B
import { terminalProjection } from "../core/runner/terminal-projection.js"; import type { TerminalCause } from "../core/types.js"; import { type Egress } from "../core/untrusted-egress.js"; /** A child run's failure words can carry a credential: every parent-facing reader takes them from here, each through the * `same-principal` tier, before any field bound can clip a token — a settled cause's projection, a rejected run's text, and * its thrown value (every string member, not the message alone). */ export declare const childTerminalFace: (terminal: TerminalCause) => ReturnType<typeof terminalProjection>; export declare const childThrownText: (err: unknown) => Egress<"same-principal">; export declare const childRejection: (err: unknown) => unknown;