mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
sync
This commit is contained in:
parent
39915e1edf
commit
b24c6b2d6d
1 changed files with 5 additions and 0 deletions
|
|
@ -155,6 +155,8 @@ export namespace MessageV2 {
|
|||
export const ToolStatePending = z
|
||||
.object({
|
||||
status: z.literal("pending"),
|
||||
input: z.any(),
|
||||
raw: z.string(),
|
||||
})
|
||||
.meta({
|
||||
ref: "ToolStatePending",
|
||||
|
|
@ -276,6 +278,7 @@ export namespace MessageV2 {
|
|||
])
|
||||
.optional(),
|
||||
system: z.string().array(),
|
||||
finish: z.string().optional(),
|
||||
modelID: z.string(),
|
||||
providerID: z.string(),
|
||||
mode: z.string(),
|
||||
|
|
@ -394,6 +397,8 @@ export namespace MessageV2 {
|
|||
if (part.toolInvocation.state === "partial-call") {
|
||||
return {
|
||||
status: "pending",
|
||||
input: {},
|
||||
raw: "",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue