Error information lost when a tool throws an error #7102
Philipp-Userlike
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Whenever a tool of my agent throws an error, I just see the error message end up in the tool response, but the traceback is lost.
Also we use sentry and the tool exception also does not end up there.
It seems like the cause is this code from
autogen_core/tools/_static_workbench.pyIt would be nice to have a way to see and log tracebacks for this case.
My current solution is wrapping all my tools with this decorator:
But currently this does not work for MCP tools.
Is there a way to get tracebacks from tool exceptions that I missed? Or can you think of a solution for this?
Beta Was this translation helpful? Give feedback.
All reactions