fix(core): settle interrupted assistant steps (#33266)
This commit is contained in:
parent
ff837fe949
commit
49593c1ec4
5 changed files with 69 additions and 17 deletions
|
|
@ -547,6 +547,8 @@ const verifyPartialFlushOnInterruption = (kind: FragmentKind) =>
|
|||
{ type: "user", text: prompt },
|
||||
{
|
||||
type: "assistant",
|
||||
finish: "error",
|
||||
error: { type: "unknown", message: "Provider turn interrupted" },
|
||||
content: [
|
||||
kind === "tool input"
|
||||
? { type: "tool", id: fragmentID(kind, "interrupted"), state: { status: "error" } }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue