@sema-agent/core
Version:
Stateless, task-oriented AI agent core
10 lines (9 loc) • 795 B
TypeScript
/**
* The one reading of who an extension-started agent row says started it. The row carries `requestedBy?: ExtensionRequester`
* (`{ kind: "extension", name }`): written once, by the registration that creates the row, from the extension's own `$.agent.spawn`
* call; absent on every other row — the model's own spawn, the host's, and every row an earlier release wrote. Rows come back from a
* store the engine did not just write, so every reader takes the member through this function: a value that is not exactly an
* extension's requester (another `kind`, a blank or non-string name) is no requester — never a half-read one.
*/
import type { ExtensionRequester } from "./task-event.js";
export declare function readExtensionRequester(raw: unknown): ExtensionRequester | undefined;