Skip to content

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.

string

CallId

Error when value is empty or whitespace-only.

const callId = CallId(crypto.randomUUID());