Remove Zod from named errors (#26982)
This commit is contained in:
parent
8feb4a31c7
commit
28f38fc871
20 changed files with 197 additions and 245 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue