UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

15 lines (14 loc) • 915 B
/** * Decode a run record's `recordArtifact` member — the raw value as read (from a run record in hand, or off a read face; it is not * trusted) — and render the sentence that names it to a model. * * `ref` is present iff the member is the `stored` shape with a ref of the shape the result store mints for a task's result: the * key `ReadToolResult` reads the full record back with. `line` is always present: the `stored` sentence naming that ref, the `unconfirmed` or `no_store` sentence saying why there * is none, or — for an absent or malformed member, or no record at all (`undefined`) — the sentence that the record could not be * read. A reader that synthesizes a completion notice for a model hands over `line` (and `ref` to whatever keeps a read handle); * it does not word its own. */ export declare function workflowRecordPickupOf(raw: unknown): { ref?: string; line: string; };