Skip to content

AgentInputSchema

const AgentInputSchema: 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">

Defined in: packages/protocol/src/lib/agent-wire.ts:178

Every input a client may send to the Agent Session, discriminated on type. Each member carries version equal to AGENT_WIRE_VERSION.