Skip to content

Enhance debugging by handling tool call errors explicitly #6459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mukundkumarjha
Copy link

Adds an exception handler to capture and surface detailed errors from the tool call. Without this, failures result in a generic error message, making it difficult to debug or identify the root cause.

… the tool call. Without this, failures result in a generic error message, making it difficult to debug or identify the root cause.e
Copy link
Collaborator

@ekzhu ekzhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. It is duplicate to #6458 .

Besides, we had to avoid ExceptionGroup because it is introduced in Python 3.11+. You can see self._format_errors which tries to detect if ExceptionGroup is available and produces the error message accordingly.

@peterj
Copy link
Contributor

peterj commented May 7, 2025

fixed in #6482

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.

3 participants