Skip to content

AssistantMessageResultMessageSchema

const AssistantMessageResultMessageSchema: ZodObject<{ outcome: ZodUnion<readonly [ZodLiteral<"inserted">, ZodLiteral<"deduped">]>; requestId: ZodPipe<ZodString, ZodTransform<MessageId, string>>; sessionId: ZodPipe<ZodString, ZodTransform<SessionId, string>>; type: ZodLiteral<"engine.assistant_message.result">; }, $strip>

Defined in: packages/protocol/src/lib/envelope.ts:324

Wire-format Zod parser for AssistantMessageResultMessage.

Validates the discriminator, branded requestId / sessionId, and the closed 'inserted' | 'deduped' outcome so consumers can trust correlation and branching semantics at the decode boundary.