Skip to content

Conversation

@charles-dyfis-net
Copy link

Description

Documents the exception property on AfterToolCallEvent, which provides access to the original exception when a tool raises an error. This enables hooks to distinguish between expected errors (which the model should retry) and unexpected errors (which should fail immediately).

Changes:

  • Added exception to the AfterToolCallEvent properties list in the Event Properties section
  • Added new "Exception Handling" subsection in Advanced Usage with a PropagateUnexpectedExceptions example hook

Related Issues

strands-agents/sdk-python#1565

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 mkdocs serve
  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant