Skip to content

Variable: MessageBlockSchema

Makaio Framework


Makaio Framework / contracts/shared / MessageBlockSchema

const MessageBlockSchema: ZodDiscriminatedUnion<[ZodObject<{ content: ZodString; type: ZodLiteral<"text">; }, $strip>, ZodObject<{ source: ZodDiscriminatedUnion<[ZodObject<{ data: ZodString; mimeType: ZodString; type: ZodLiteral<"base64">; }, $strip>, ZodObject<{ mimeType: ZodOptional<ZodString>; type: ZodLiteral<"url">; url: ZodString; }, $strip>], "type">; type: ZodLiteral<"image">; }, $strip>, ZodObject<{ source: ZodDiscriminatedUnion<[ZodObject<{ data: ZodString; mimeType: ZodString; type: ZodLiteral<"base64">; }, $strip>, ZodObject<{ mimeType: ZodOptional<ZodString>; type: ZodLiteral<"url">; url: ZodString; }, $strip>], "type">; type: ZodLiteral<"document">; }, $strip>, ZodObject<{ attachmentType: ZodEnum<{ directory: "directory"; file: "file"; }>; displayName: ZodOptional<ZodString>; fileName: ZodString; filePath: ZodString; source: ZodDiscriminatedUnion<[ZodObject<{ data: ZodString; mimeType: ZodString; type: ZodLiteral<"base64">; }, $strip>, ZodObject<{ mimeType: ZodOptional<ZodString>; type: ZodLiteral<"url">; url: ZodString; }, $strip>], "type">; type: ZodLiteral<"attachment">; }, $strip>], "type">

Defined in: ../../../packages/contracts/src/shared/index.ts:37

Message block representing different types of content. Supports text, images, documents, file attachments, reasoning, tool calls, and tool outputs.