RunId
RunId: (
value) =>RunId
Defined in: packages/protocol/src/lib/agent-ids.ts:10
Brands an existing string as a RunId. Smart constructor: the identifier names both the type and this factory. Run ids are minted by the host that runs the loop, so this only brands and never generates.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Throws
Section titled “Throws”Error when value is empty or whitespace-only.
Example
Section titled “Example”const runId = RunId(crypto.randomUUID());