Skip to content

AssistantInjectionMessageSchema

const AssistantInjectionMessageSchema: ZodObject<{ content: ZodString; id: ZodPipe<ZodString, ZodTransform<MessageId, string>>; sessionId: ZodPipe<ZodString, ZodTransform<SessionId, string>>; timestamp: ZodNumber; type: ZodLiteral<"assistant_message">; }, $strip>

Defined in: packages/protocol/src/lib/engine-message.ts:139

Wire-format Zod parser for AssistantInjectionMessage envelopes. Validates the discriminator, all envelope-level fields, and requires content to be a non-empty string.