Skip to content

Commit 321d83c

Browse files
Clarify execution behavior after tool unregistration (#311)
Co-authored-by: Dominic Farolino <[email protected]>
1 parent f5645e9 commit 321d83c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎index.bs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,12 @@ To <dfn for="model context">unregister a tool</dfn> given a {{ModelContext}} |mo
565565

566566
1. [=map/Remove=] |tool map|[|tool name|].
567567

568+
Note: Unregistering a tool does not cancel an execution that has already invoked its
569+
{{ToolExecuteCallback}}, including when the callback itself performs the unregistration.
570+
The registration-time {{ModelContextRegisterToolOptions/signal}} only controls tool
571+
availability, while the execution-time {{ModelContextExecuteToolOptions/signal}} controls the
572+
lifetime of an specific invocation.
573+
568574
1. Let |targetDocument| be |modelContext|'s [=relevant global object=]'s [=associated
569575
Document|associated <code>Document</code>=].
570576

0 commit comments

Comments
 (0)