feat: add tool cancellation typescript example#687
Merged
lizradway merged 4 commits intostrands-agents:mainfrom Mar 20, 2026
Merged
feat: add tool cancellation typescript example#687lizradway merged 4 commits intostrands-agents:mainfrom
lizradway merged 4 commits intostrands-agents:mainfrom
Conversation
7 tasks
Contributor
Documentation Preview ReadyYour documentation preview has been successfully deployed! Preview URL: https://d3ehv1nix5p99z.cloudfront.net/pr-cms-687/docs/user-guide/quickstart/overview/ Updated at: 2026-03-20T14:17:54.632Z |
lizradway
commented
Mar 19, 2026
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
a7a15d1 to
c20dc7e
Compare
pgrayy
reviewed
Mar 20, 2026
pgrayy
reviewed
Mar 20, 2026
pgrayy
approved these changes
Mar 20, 2026
notowen333
pushed a commit
to notowen333/docs
that referenced
this pull request
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds TypeScript code examples for the
cancelfeature onBeforeToolCallEventandBeforeToolsEventhooks, corresponding to strands-agents/sdk-typescript#696. Replaces the "not yet available" placeholders in the Limit Tool Counts cookbook section and addscancelto the Event Properties table.Related Issues
strands-agents/sdk-typescript#696
Type of Change
Checklist
npm run devBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.