Skip to content

Variable: ThinkingEventSchema

const ThinkingEventSchema: ZodObject<{ attachment_id: ZodOptional<ZodString>; conversation_id: ZodOptional<ZodString>; message_id: ZodOptional<ZodString>; space_id: ZodString; text: ZodString; thought_type: ZodCustom<GenieThoughtType, GenieThoughtType>; type: ZodLiteral<"thinking">; }, $strip>

A new reasoning step appeared on a query attachment (attachments[i].query.thoughts[i]). Deduplicated per (thought_type, content) tuple within an attachment so subscribers don’t see the same thought multiple times - Genie sometimes mutates existing thought slots in place, so the diff is value-based rather than positional.