AgentInputMessageSchema
constAgentInputMessageSchema:ZodObject<{id:ZodPipe<ZodString,ZodTransform<MessageId,string>>;input:ZodDiscriminatedUnion<[ZodObject<{chart:ZodType<ChartRequest,unknown,$ZodTypeInternals<ChartRequest,unknown>>;inputId:ZodPipe<ZodString,ZodTransform<MessageId,string>>;source:ZodEnum<{text:"text";voice:"voice"; }>;text:ZodString;type:ZodLiteral<"utterance">;version:ZodLiteral<1>; },$strip>,ZodObject<{actionOutcomes:ZodArray<ZodObject<{error:ZodOptional<ZodString>;ok:ZodBoolean; },$strip>>;changeId:ZodPipe<ZodString,ZodTransform<ChangeId,string>>;chart:ZodType<ChartRequest,unknown,$ZodTypeInternals<ChartRequest,unknown>>;type:ZodLiteral<"ui_applied">;version:ZodLiteral<1>; },$strip>],"type">;sessionId:ZodPipe<ZodString,ZodTransform<SessionId,string>>;type:ZodLiteral<"client.agent.input">; },$strip>
Defined in: packages/protocol/src/lib/envelope.ts:130
Wire-format Zod parser for AgentInputMessage. Validates the
discriminator, the branded id / sessionId, and the inner
AgentInput, including its version.