Skip to content

ToolCallIdSchema

const ToolCallIdSchema: ZodPipe<ZodString, ZodTransform<ToolCallId, string>>

Defined in: packages/protocol/src/lib/tool-call-id.ts:40

Wire-format Zod parser for ToolCallId. Mirrors the non-empty-string invariant enforced by requireNonEmptyBrand (rejects '', ' ', '\t', etc.) and carries the ToolCallId brand on z.infer output so consumer schemas that reference it stay branded end-to-end.