mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
optional
This commit is contained in:
parent
021fd3fcb5
commit
3c23b92bea
1 changed files with 6 additions and 4 deletions
|
|
@ -140,10 +140,12 @@ export namespace Message {
|
|||
created: z.number(),
|
||||
completed: z.number().optional(),
|
||||
}),
|
||||
error: z.discriminatedUnion("name", [
|
||||
Provider.AuthError.Schema,
|
||||
NamedError.Unknown.Schema,
|
||||
]),
|
||||
error: z
|
||||
.discriminatedUnion("name", [
|
||||
Provider.AuthError.Schema,
|
||||
NamedError.Unknown.Schema,
|
||||
])
|
||||
.optional(),
|
||||
sessionID: z.string(),
|
||||
tool: z.record(z.string(), z.any()),
|
||||
assistant: z
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue