refactor(core): settle declined tool calls durably with typed reasons (#38734)
This commit is contained in:
parent
993f046dd9
commit
5ae2d6d3f6
7 changed files with 109 additions and 36 deletions
|
|
@ -3569,7 +3569,7 @@ describe("SessionRunnerLLM", () => {
|
|||
{
|
||||
type: "tool",
|
||||
id: "call-declined",
|
||||
state: { status: "error", error: { message: "Tool execution interrupted" } },
|
||||
state: { status: "error", error: { type: "aborted", message: "The user declined this tool call" } },
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
@ -3721,7 +3721,7 @@ describe("SessionRunnerLLM", () => {
|
|||
{
|
||||
type: "tool",
|
||||
id: "call-question",
|
||||
state: { status: "error", error: { type: "aborted", message: "Tool execution interrupted" } },
|
||||
state: { status: "error", error: { type: "aborted", message: "The user dismissed this question" } },
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue