Skip to content

feat: add tool cancellation typescript example#687

Merged
lizradway merged 4 commits intostrands-agents:mainfrom
lizradway:ts-before-tool-cancel
Mar 20, 2026
Merged

feat: add tool cancellation typescript example#687
lizradway merged 4 commits intostrands-agents:mainfrom
lizradway:ts-before-tool-cancel

Conversation

@lizradway
Copy link
Copy Markdown
Member

@lizradway lizradway commented Mar 19, 2026

Description

Adds TypeScript code examples for the cancel feature on BeforeToolCallEvent and BeforeToolsEvent hooks, corresponding to strands-agents/sdk-typescript#696. Replaces the "not yet available" placeholders in the Limit Tool Counts cookbook section and adds cancel to the Event Properties table.

Related Issues

strands-agents/sdk-typescript#696

Type of Change

  • Content update/revision

Checklist

  • I have read the CONTRIBUTING document
  • My changes follow the project's documentation style
  • I have tested the documentation locally using npm run dev
  • Links in the documentation are valid and working

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 19, 2026

Documentation Preview Ready

Your 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

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@lizradway lizradway marked this pull request as ready for review March 19, 2026 20:48
@lizradway lizradway marked this pull request as draft March 20, 2026 14:11
@lizradway lizradway temporarily deployed to manual-approval March 20, 2026 14:13 — with GitHub Actions Inactive
@lizradway lizradway marked this pull request as ready for review March 20, 2026 14:17
@lizradway lizradway merged commit 111ebf4 into strands-agents:main Mar 20, 2026
8 checks passed
notowen333 pushed a commit to notowen333/docs that referenced this pull request Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants