@sema-agent/core
Version:
Stateless, task-oriented AI agent core
19 lines (18 loc) • 970 B
TypeScript
/** Which copy of the engine minted a Model snapshot: this one; another copy registered in this process (its version and where it was
* loaded from); or none of them — a value no registered copy's model door minted (a host's own object, anything else). */
export type ModelMintedBy = {
readonly by: "this_copy";
} | {
readonly by: "other_copy";
readonly version: string;
readonly loadedFrom: string;
} | {
readonly by: "none";
};
/**
* Which copy of the engine minted `value` as a Model snapshot (its model door received it): this copy, another copy registered in the
* process slot, or none. A diagnosis read — the engine never decides anything on it: a host that refuses a Model it cannot find
* (its own table, keyed through {@link modelOriginOf}) names the other copy in its refusal. Never throws: another copy's test that
* throws is read as "not that copy's".
*/
export declare function modelMintedBy(value: unknown): ModelMintedBy;