CallToolResult.isError should not be required

This commit is contained in:
Justin Spahr-Summers 2024-11-11 21:27:02 +00:00
commit 7631cdb6d1
No known key found for this signature in database

View file

@ -719,7 +719,7 @@ export const CallToolResultSchema = ResultSchema.extend({
content: z.array(
z.union([TextContentSchema, ImageContentSchema, EmbeddedResourceSchema]),
),
isError: z.boolean().default(false),
isError: z.boolean().default(false).optional(),
});
/**