CallToolResult.isError should be optional

This commit is contained in:
Justin Spahr-Summers 2024-11-07 13:36:57 +00:00
commit 5c6a7a247e
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(),
isError: z.boolean().default(false),
});
/**