@sema-agent/core
Version:
Stateless, task-oriented AI agent core
15 lines (14 loc) • 1.04 kB
TypeScript
/**
* The zero-value constructor of {@link RunState}, the run loop's ONE shared mutable record (seven groups,
* sixty fields; its writers are the run loop's three top-level machines, see the interface's own doc in
* contracts.ts). The driver mints one per run leg and hands it to every machine as a `borrowed-mutable`
* seat; nothing here reads or writes host state, so the skeleton is machinery, not a phase.
*
* Named without the `run-` family prefix on purpose: that prefix marks a DRIVEN run lane (one the driver
* calls with an Input and reads a Result from — the phase-api gate judges every such file), and the
* layering registry's run-lanes stratum is a glob over the same prefix. A machinery module the lanes stand
* on sits one layer below them under a name of its own, exactly as the prepare-path machinery does.
*/
import type { RunState } from "./contracts.js";
/** Zero-value skeleton — every REAL value is assigned at the field's original declaration site. */
export declare function createRunState(): RunState;