Skip to content
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

Tool Calls errors shouldn't blow up the workflow. Or should they? #356

Open
jmoseley opened this issue Feb 26, 2025 · 0 comments
Open

Tool Calls errors shouldn't blow up the workflow. Or should they? #356

jmoseley opened this issue Feb 26, 2025 · 0 comments

Comments

@jmoseley
Copy link
Contributor

When a tool call throws an error, the entire workflow fails. On one hand, we can catch these errors, serialize them, and pass them back to the model. However, this might hide unexpected errors from the developer, making it harder for them to realize they are happening.

The other option is to just improve our examples to encourage tool implementations to use a try...catch so that we make it clear that it is up to the developer to gracefully handle expected errors.

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

No branches or pull requests

1 participant