Skip to content

Variable: GenieAgentResultSchema

const GenieAgentResultSchema: ZodObject<{ conversationId: ZodOptional<ZodString>; error: ZodOptional<ZodString>; spaceId: ZodString; summary: ZodArray<ZodDiscriminatedUnion<[ZodObject<{ text: ZodString; type: ZodLiteral<"string">; }, $strip>, ZodObject<{ dataset: ZodObject<{ chart: ZodOptional<ZodObject<…, …>>; data: ZodObject<{ columns: …; rowCount: …; rows: …; }, $strip>; }, $strip>; description: ZodOptional<ZodString>; statementId: ZodString; title: ZodOptional<ZodString>; type: ZodLiteral<"visualize">; }, $strip>], "type">>; }, $strip>

The Genie agent’s final output shape - what the calling agent’s Genie tool returns to the calling LLM. The summary array is the user-facing renderable; conversationId lets the calling agent (or the UI) follow up in the same Genie thread on the next turn.