Skip to content

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.

string

RunId

Error when value is empty or whitespace-only.

const runId = RunId(crypto.randomUUID());