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
|
|
@ -24,7 +24,7 @@ const source = {
|
|||
}
|
||||
```
|
||||
|
||||
Leaves own resolution, permission, and side-effect ordering. Translate only expected typed errors into `ToolFailure`; do not use `catchCause`, because interruption and defects must survive.
|
||||
Leaves own resolution, permission, and side-effect ordering. Translate only expected typed errors into `ToolFailure`; do not use `catchCause`, because interruption and defects must survive. User declines from `PermissionV2.assert` and question dismissals travel as defects beneath leaf `mapError` blankets and resurface as typed failures at `SessionModelRequest.executeTool`; leaves must never catch or convert them. A decline with feedback (`PermissionV2.CorrectedError`) stays typed so the leaf converts it into `ToolFailure` and the model continues.
|
||||
|
||||
## Registration
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue