Remove Zod from named errors (#26982)

This commit is contained in:
Kit Langton 2026-05-12 09:20:15 -04:00 committed by GitHub
commit 28f38fc871
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 197 additions and 245 deletions

View file

@ -382,9 +382,7 @@ export type Part =
const AssistantErrorSchema = Schema.Union([
AuthError.EffectSchema,
Schema.Struct({ name: Schema.Literal("UnknownError"), data: Schema.Struct({ message: Schema.String }) }).annotate({
identifier: "UnknownError",
}),
NamedError.Unknown.EffectSchema,
OutputLengthError.EffectSchema,
AbortedError.EffectSchema,
StructuredOutputError.EffectSchema,