Add v2 session failure events (#25628)

This commit is contained in:
Dax 2026-05-03 14:45:48 -04:00 committed by GitHub
commit 7749d8e85f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 104 additions and 22 deletions

View file

@ -152,7 +152,7 @@ export class Assistant extends Schema.Class<Assistant>("Session.Message.Assistan
write: Schema.Finite,
}),
}).pipe(Schema.optional),
error: Schema.String.pipe(Schema.optional),
error: SessionEvent.Step.Failed.fields.data.fields.error.pipe(Schema.optional),
time: Schema.Struct({
created: V2Schema.DateTimeUtcFromMillis,
completed: V2Schema.DateTimeUtcFromMillis.pipe(Schema.optional),