CallId
CallId: (
value) =>CallId
Defined in: packages/protocol/src/lib/agent-ids.ts:48
Brands an existing string as a CallId. Smart constructor: the identifier names both the type and this factory. Call ids are minted by the agent 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 callId = CallId(crypto.randomUUID());